Skip to content

Commit

Permalink
hotfix: Fix deprecated version of PDB
Browse files Browse the repository at this point in the history
  • Loading branch information
mreccowallarm committed Jun 4, 2022
1 parent f668481 commit 7d2f016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pgbouncer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.15.0"
description: A Helm chart installing pgbouncer in kubernetes
name: pgbouncer
version: 1.2.0
version: 1.2.1
6 changes: 3 additions & 3 deletions pgbouncer/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Return the appropriate apiVersion for PodSecurityPolicy kind of objects.
Return the appropriate apiVersion for PodDisruptionBudget kind of objects.
*/}}
{{- define "podDisruptionBudget.apiVersion" -}}
{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodDisruptionBudget" -}}
{{- print "policy/v1beta1" -}}
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
{{- print "policy/v1" -}}
{{- else -}}
{{- print "extensions/v1beta1" -}}
{{- print "policy/v1beta1" -}}
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit 7d2f016

Please sign in to comment.