File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
charts/mysql-operator/templates Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1- {{- if .Values.installCRDs }}
1+ {{- if (and .Values.installCRDs (not (.Capabilities.APIVersions.Has "mysql.presslabs.org/v1alpha1"))) }}
22apiVersion : apiextensions.k8s.io/v1beta1
33kind : CustomResourceDefinition
44metadata :
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ yq d -d'*' -i ${CHART_PATH}/templates/_crds.yaml spec.validation
1515yq w -d1 -i ${CHART_PATH} /templates/_crds.yaml ' spec.names.shortNames[0]' mysql
1616
1717
18- echo ' {{- if .Values.installCRDs }}' > ${CHART_PATH} /templates/crds.yaml
18+ echo ' {{- if (and .Values.installCRDs (not (.Capabilities.APIVersions.Has "mysql.presslabs.org/v1alpha1"))) }}' > ${CHART_PATH} /templates/crds.yaml
1919cat ${CHART_PATH} /templates/_crds.yaml >> ${CHART_PATH} /templates/crds.yaml
2020echo ' {{- end }}' >> ${CHART_PATH} /templates/crds.yaml
2121rm ${CHART_PATH} /templates/_crds.yaml
You can’t perform that action at this time.
0 commit comments