Skip to content

Commit

Permalink
Support for pdb apiVersion policy/v1 (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailadvani authored Oct 5, 2022
1 parent 81142c1 commit fe44df4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/pomerium/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/pomerium/templates/authenticate-pdb.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 4 additions & 0 deletions charts/pomerium/templates/authorize-pdb.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 4 additions & 0 deletions charts/pomerium/templates/databroker-pdb.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 4 additions & 0 deletions charts/pomerium/templates/proxy-pdb.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit fe44df4

Please sign in to comment.