mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-03 18:52:18 -03:00
**Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes # <!--(issue)--> Adds a pre-flight check for helm version. By default the restriction is set to `>3.9.4` which is know to not work with parts of this library. If the annotation `truecharts.org/min_helm_version` is found then the restriction becomes `>=` + the version defined in the annotation. Currently we can't really "unit test" this, because there is no way to manipulate annotations in the test suites. But we are at least testing that it does not "fail", because if it would, all unittests would fail. --- Additionally updated the upper bound of helm version we run the tests on, and also updated the unittest plugin version. Adjusted some "matchers" in the unittest files to follow the semantic changes in from the unittest plugins. **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 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:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [x] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [x] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ 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._
58 lines
1.9 KiB
Smarty
58 lines
1.9 KiB
Smarty
{{/* Initialiaze values of the chart */}}
|
|
{{- define "tc.v1.common.loader.init" -}}
|
|
|
|
{{- include "tc.v1.common.check.capabilities" . -}}
|
|
|
|
{{/* Merge chart values and the common chart defaults */}}
|
|
{{- include "tc.v1.common.values.init" . -}}
|
|
|
|
{{/* Parse lists and append to values */}}
|
|
{{- include "tc.v1.common.loader.lists" . -}}
|
|
|
|
{{/* Ensure TrueCharts chart context information is available */}}
|
|
{{- include "tc.v1.common.lib.util.chartcontext" . -}}
|
|
|
|
{{/* Autogenerate postgresql passwords if needed */}}
|
|
{{- include "tc.v1.common.spawner.cnpg" . }}
|
|
|
|
{{/* Autogenerate redis passwords if needed */}}
|
|
{{- include "tc.v1.common.dependencies.redis.injector" . }}
|
|
|
|
{{/* Autogenerate mariadb passwords if needed */}}
|
|
{{- include "tc.v1.common.dependencies.mariadb.injector" . }}
|
|
|
|
{{/* Autogenerate mongodb passwords if needed */}}
|
|
{{- include "tc.v1.common.dependencies.mongodb.injector" . }}
|
|
|
|
{{/* Autogenerate clickhouse passwords if needed */}}
|
|
{{- include "tc.v1.common.dependencies.clickhouse.injector" . }}
|
|
|
|
{{/* Autogenerate solr passwords if needed */}}
|
|
{{- include "tc.v1.common.dependencies.solr.injector" . }}
|
|
|
|
{{/* Register Operator if needed */}}
|
|
{{- include "tc.v1.common.lib.util.operator.register" . }}
|
|
|
|
{{/* Verify if required operators are present */}}
|
|
{{- include "tc.v1.common.lib.util.operator.verifyAll" . }}
|
|
|
|
{{/* Enable code-server add-on if required */}}
|
|
{{- if .Values.addons.codeserver.enabled }}
|
|
{{- include "tc.v1.common.addon.codeserver" . }}
|
|
{{- end -}}
|
|
|
|
{{/* Enable VPN add-on if required */}}
|
|
{{- if ne "disabled" .Values.addons.vpn.type -}}
|
|
{{- include "tc.v1.common.addon.vpn" . }}
|
|
{{- end -}}
|
|
|
|
{{/* Enable netshoot add-on if required */}}
|
|
{{- if .Values.addons.netshoot.enabled }}
|
|
{{- include "tc.v1.common.addon.netshoot" . }}
|
|
{{- end -}}
|
|
|
|
{{/* Append database wait containers to pods */}}
|
|
{{- include "tc.v1.common.lib.deps.wait" $ }}
|
|
|
|
{{- end -}}
|