chore(common): hardfail with clear error when required operators are not found.

This commit is contained in:
Kjeld Schouten
2023-07-31 12:36:40 +02:00
parent 3fdd15689a
commit ec290f2d23
3 changed files with 3 additions and 4 deletions

View File

@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 13.2.2
version: 14.0.0

View File

@@ -40,7 +40,7 @@
{{- if eq $fetchedOpData "false" -}}
{{/* Fail only if explicitly asked */}}
{{- if $.Values.operator.verify.failOnError -}}
{{- fail (printf "Operator [%s] have to be installed first" $opName) -}}
{{- fail (printf "Operator [%s] has to be installed first" $opName) -}}
{{- end -}}
{{/* If $fetchedOpData is not false, we should have JSON data */}}
{{- else -}}

View File

@@ -582,8 +582,7 @@ operator:
verify:
enabled: true
# -- Makes non-found operators hard-failing
## TODO: set to true
failOnError: false
failOnError: true
# -- a list of extra operators to check for
additionalOperators: []
## -- used as a datastore when a metallb operator is found.