diff --git a/charts/zookeeper-operator/templates/zookeeper.pravega.io_zookeeperclusters_crd.yaml b/charts/zookeeper-operator/templates/zookeeper.pravega.io_zookeeperclusters_crd.yaml index 5bcef7963..1707ebcc2 100644 --- a/charts/zookeeper-operator/templates/zookeeper.pravega.io_zookeeperclusters_crd.yaml +++ b/charts/zookeeper-operator/templates/zookeeper.pravega.io_zookeeperclusters_crd.yaml @@ -1,5 +1,9 @@ {{- if .Values.crd.create }} +{{- if .Capabilities.APIVersions.Has "apiextensions.k8s.io/v1" }} +apiVersion: apiextensions.k8s.io/v1 +{{- else }} apiVersion: apiextensions.k8s.io/v1beta1 +{{- end }} kind: CustomResourceDefinition metadata: name: zookeeperclusters.zookeeper.pravega.io