mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-03 11:54:41 -03:00
chore(common): hardfail with clear error when required operators are not found. (#505)
**Description** This PR enabled operator validation failing with an error when operators are not found. This means users actually will **need** to migrate to the new way of handling operators. **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [x] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._
This commit is contained in:
@@ -15,4 +15,4 @@ maintainers:
|
||||
name: common
|
||||
sources: null
|
||||
type: library
|
||||
version: 13.2.2
|
||||
version: 14.0.0
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user