Skip to content

Commit 6f55703

Browse files
committed
Add templating failure for featureSet
Signed-off-by: Todd Short <[email protected]>
1 parent 06242cd commit 6f55703

3 files changed

+6
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
{{ tpl (.Files.Get "base/catalogd/crd/standard/olm.operatorframework.io_clustercatalogs.yaml") . }}
44
{{- else if (eq .Values.options.featureSet "experimental") }}
55
{{ tpl (.Files.Get "base/catalogd/crd/experimental/olm.operatorframework.io_clustercatalogs.yaml") . }}
6+
{{- else }}
7+
{{- fail "options.featureSet must be set to one of: {standard,experimental}" }}
68
{{- end }}
79
{{- end }}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
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") }}
55
{{ tpl (.Files.Get "base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensionrevisions.yaml") . }}
6+
{{- else }}
7+
{{- fail "options.featureSet must be set to one of: {standard,experimental}" }}
68
{{- end }}
79
{{- end }}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
{{ tpl (.Files.Get "base/operator-controller/crd/standard/olm.operatorframework.io_clusterextensions.yaml") . }}
44
{{- else if (eq .Values.options.featureSet "experimental") }}
55
{{ tpl (.Files.Get "base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensions.yaml") . }}
6+
{{- else }}
7+
{{- fail "options.featureSet must be set to one of: {standard,experimental}" }}
68
{{- end }}
79
{{- end }}

0 commit comments

Comments
 (0)