From aa629d33189cd9b5cede44fdc922f8ae22769d51 Mon Sep 17 00:00:00 2001 From: Todd Short Date: Thu, 13 Nov 2025 09:19:01 -0500 Subject: [PATCH] Only include ClusterExtensionRevision CRD when Boxcutter enabled Add a check for the BoxcutterRuntime feature-gate before including the ClusterExtensionRevision CRD into the manifest. Signed-off-by: Todd Short --- ...ition-clusterextensionrevisions.olm.operatorframework.io.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/olmv1/templates/crds/customresourcedefinition-clusterextensionrevisions.olm.operatorframework.io.yml b/helm/olmv1/templates/crds/customresourcedefinition-clusterextensionrevisions.olm.operatorframework.io.yml index c006ed20f..e52614d6e 100644 --- a/helm/olmv1/templates/crds/customresourcedefinition-clusterextensionrevisions.olm.operatorframework.io.yml +++ b/helm/olmv1/templates/crds/customresourcedefinition-clusterextensionrevisions.olm.operatorframework.io.yml @@ -2,7 +2,9 @@ {{- if (eq .Values.options.featureSet "standard") }} {{- /* Add when GA: tpl (.Files.Get "base/operator-controller/crd/standard/olm.operatorframework.io_clusterextensionrevisionss.yaml") . */}} {{- else if (eq .Values.options.featureSet "experimental") }} +{{- if has "BoxcutterRuntime" .Values.options.operatorController.features.enabled }} {{ tpl (.Files.Get "base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensionrevisions.yaml") . }} +{{- end }} {{- else }} {{- fail "options.featureSet must be set to one of: {standard,experimental}" }} {{- end }}