Skip to content

Commit 38acafc

Browse files
committed
Fix backwards compatibility for k8s 1.24
1 parent d74c33a commit 38acafc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/poddisruptionbudget.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{{- if .Values.podDisruptionBudget -}}
2+
{{- if .Capabilities.APIVersions.Has "policy/v1beta1" -}}
3+
apiVersion: policy/v1beta1
4+
{{- else}}
25
apiVersion: policy/v1
6+
{{- end }}
37
kind: PodDisruptionBudget
48
metadata:
59
name: {{ template "docker-registry.fullname" . }}

0 commit comments

Comments
 (0)