Skip to content

Commit c06f27f

Browse files
authored
Only include ClusterExtensionRevision CRD when Boxcutter enabled (#2331)
Add a check for the BoxcutterRuntime feature-gate before including the ClusterExtensionRevision CRD into the manifest. Signed-off-by: Todd Short <tshort@redhat.com>
1 parent 35e38aa commit c06f27f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helm/olmv1/templates/crds/customresourcedefinition-clusterextensionrevisions.olm.operatorframework.io.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
{{- if (eq .Values.options.featureSet "standard") }}
33
{{- /* Add when GA: tpl (.Files.Get "base/operator-controller/crd/standard/olm.operatorframework.io_clusterextensionrevisionss.yaml") . */}}
44
{{- else if (eq .Values.options.featureSet "experimental") }}
5+
{{- if has "BoxcutterRuntime" .Values.options.operatorController.features.enabled }}
56
{{ tpl (.Files.Get "base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensionrevisions.yaml") . }}
7+
{{- end }}
68
{{- else }}
79
{{- fail "options.featureSet must be set to one of: {standard,experimental}" }}
810
{{- end }}

0 commit comments

Comments
 (0)