Skip to content

Commit

Permalink
helm: use PodDisruptionBudget policy/v1 when policy/v1beta1 is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
elchenberg committed Aug 30, 2022
1 parent 5d94d29 commit 826b2a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/opa-kube-mgmt/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if .Values.podDisruptionBudget.enabled }}
{{- if .Capabilities.APIVersions.Has "policy/v1beta1" }}
apiVersion: policy/v1beta1
{{- else }}
apiVersion: policy/v1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ template "opa.fullname" . }}
Expand Down

0 comments on commit 826b2a3

Please sign in to comment.