diff --git a/charts/cp-zookeeper/templates/poddisruptionbudget.yaml b/charts/cp-zookeeper/templates/poddisruptionbudget.yaml index bb5e1ad9..e6742461 100644 --- a/charts/cp-zookeeper/templates/poddisruptionbudget.yaml +++ b/charts/cp-zookeeper/templates/poddisruptionbudget.yaml @@ -1,4 +1,8 @@ +{{- if .Capabilities.APIVersions.Has "policy/v1" }} +apiVersion: policy/v1 +{{- else }} apiVersion: policy/v1beta1 +{{- end }} kind: PodDisruptionBudget metadata: name: {{ template "cp-zookeeper.fullname" . }}-pdb