version.BuildInfo{Version:"v3.12.2", GitCommit:"v3.12.2", GitTreeState:"", GoVersion:"go1.20.6"}
In Documentation describted "Re-using environment state in sub-helmfiles", which i found here:
Advanced Features > Best Practices Guide > Re-using environment state in sub-helmfiles
Does not work:
environments:
stage:
values:
- env/stage.yaml
prod:
values:
- env/prod.yaml
---
helmfiles:
- path: sub-helmfile.yaml
values:
- {{ toYaml .Values | nindent 4 }}
❯ helmfile -e prod list -f helmfile.yaml
in ./helmfile.yaml: failed to read helmfile.yaml: reading document at index 1: yaml: line 8: did not find expected '-' indicator
❯ helmfile -e stage list -f helmfile.yaml
in ./helmfile.yaml: failed to read helmfile.yaml: reading document at index 1: yaml: line 8: did not find expected '-' indicator
Expected:
❯ helmfile -e stage list
NAME NAMESPACE ENABLED INSTALLED LABELS CHART VERSION
a true false a/a
❯ helmfile -e prod list
NAME NAMESPACE ENABLED INSTALLED LABELS CHART VERSION
a true true a/a