Skip to content

Commit 7d16b3c

Browse files
authored
Merge pull request #114 from ddelange/patch-3
Fix backwards compatibility for k8s 1.24
2 parents 419a289 + c112eda commit 7d16b3c

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/v1" -}}
23
apiVersion: policy/v1
4+
{{- else}}
5+
apiVersion: policy/v1beta1
6+
{{- end }}
37
kind: PodDisruptionBudget
48
metadata:
59
name: {{ template "docker-registry.fullname" . }}

0 commit comments

Comments
 (0)