diff --git a/charts/pomerium/Chart.yaml b/charts/pomerium/Chart.yaml index 1c4e324..b90b270 100644 --- a/charts/pomerium/Chart.yaml +++ b/charts/pomerium/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: pomerium -version: 32.0.6 +version: 32.1.0 appVersion: v0.18.0 home: http://www.pomerium.com/ icon: https://www.pomerium.com/img/icon.svg diff --git a/charts/pomerium/templates/authenticate-pdb.yaml b/charts/pomerium/templates/authenticate-pdb.yaml index 6b8e286..9a77b6c 100644 --- a/charts/pomerium/templates/authenticate-pdb.yaml +++ b/charts/pomerium/templates/authenticate-pdb.yaml @@ -1,5 +1,9 @@ {{- if .Values.authenticate.pdb.enabled -}} +{{- if .Capabilities.APIVersions.Has "policy/v1" -}} +apiVersion: policy/v1 +{{- else -}} apiVersion: policy/v1beta1 +{{- end }} kind: PodDisruptionBudget metadata: labels: diff --git a/charts/pomerium/templates/authorize-pdb.yaml b/charts/pomerium/templates/authorize-pdb.yaml index d8489a9..73b7124 100644 --- a/charts/pomerium/templates/authorize-pdb.yaml +++ b/charts/pomerium/templates/authorize-pdb.yaml @@ -1,5 +1,9 @@ {{- if .Values.authorize.pdb.enabled -}} +{{- if .Capabilities.APIVersions.Has "policy/v1" -}} +apiVersion: policy/v1 +{{- else -}} apiVersion: policy/v1beta1 +{{- end }} kind: PodDisruptionBudget metadata: labels: diff --git a/charts/pomerium/templates/databroker-pdb.yaml b/charts/pomerium/templates/databroker-pdb.yaml index 5d7c134..c995ea1 100644 --- a/charts/pomerium/templates/databroker-pdb.yaml +++ b/charts/pomerium/templates/databroker-pdb.yaml @@ -1,5 +1,9 @@ {{- if .Values.databroker.pdb.enabled -}} +{{- if .Capabilities.APIVersions.Has "policy/v1" -}} +apiVersion: policy/v1 +{{- else -}} apiVersion: policy/v1beta1 +{{- end }} kind: PodDisruptionBudget metadata: labels: diff --git a/charts/pomerium/templates/proxy-pdb.yaml b/charts/pomerium/templates/proxy-pdb.yaml index a6f829d..63b9b83 100644 --- a/charts/pomerium/templates/proxy-pdb.yaml +++ b/charts/pomerium/templates/proxy-pdb.yaml @@ -1,5 +1,9 @@ {{- if .Values.proxy.pdb.enabled -}} +{{- if .Capabilities.APIVersions.Has "policy/v1" -}} +apiVersion: policy/v1 +{{- else -}} apiVersion: policy/v1beta1 +{{- end }} kind: PodDisruptionBudget metadata: labels: