Skip to content

Commit

Permalink
CRD apiVersion check
Browse files Browse the repository at this point in the history
  • Loading branch information
lspecian-olx committed May 19, 2021
1 parent a99c93b commit fd31fcc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fd31fcc

Please sign in to comment.