From 14e81ede9ac4527283ae9fe59c06573f05bdcfb7 Mon Sep 17 00:00:00 2001 From: Ankur Gupta Date: Tue, 13 Jun 2023 12:45:58 +0530 Subject: [PATCH] replace policy/v1beta1 with policy/v1 --- charts/cp-zookeeper/templates/poddisruptionbudget.yaml | 4 ++++ 1 file changed, 4 insertions(+) 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