mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
3b42ffa67b
The chart had no way to ship objects of the operator's own next to TREK, so a backup CronJob, a ConfigMap for it or any other helper had to live in a second release or be applied by hand (discussion #3194). extraObjects takes a list, empty by default so nothing renders, and renders each item through tpl: a map as YAML, a string as written, so names such as {{ .Release.Name }} resolve in both forms. The values comment, the chart README and the Helm wiki page say that braces are evaluated in both forms, that a backup job must mount the data volume read only, and that it should copy TREK's own backup archives rather than the live travel.db. Those archives carry the encryption key unless ENCRYPTION_KEY comes from the environment, so their destination needs the same protection as the volume. CI renders a variant with a CronJob in the map form and a ConfigMap in the string form, checks it with kubeconform -strict, and fails when a {{ is left unrendered.