Merge pull request #114 from ddelange/patch-3

Fix backwards compatibility for k8s 1.24
This commit is contained in:
Vyas
2024-03-08 09:49:40 -06:00
committed by GitHub
+4
View File
@@ -1,5 +1,9 @@
{{- if .Values.podDisruptionBudget -}}
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
apiVersion: policy/v1
{{- else}}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ template "docker-registry.fullname" . }}