mirror of
https://github.com/twuni/docker-registry.helm.git
synced 2026-08-27 06:17:17 +00:00
Fix backwards compatibility for k8s 1.24
This commit is contained in:
@@ -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" . }}
|
||||
|
||||
Reference in New Issue
Block a user