Helmfile fails with `in ./helmfile.yaml: failed to read helmfile.yaml: reading document at index 1: yaml: line 14: did not find expected node content` after upgrading to Helmfile 1.x.
AdvancedTroubleshootingHooks, Tests, GitOps & Secrets
Answer
Likely causes → The file contains Go template expressions ({{ .Environment.Name }}), and Helmfile 1.x only renders templates in files with the .gotmpl extension, so the raw braces reach the YAML parser.
Diagnose → grep -n '{{' helmfile.yaml.
Fix → Rename to helmfile.yaml.gotmpl (and templated values files to *.yaml.gotmpl), or remove templating.
Prevent → Read the major-version migration notes; pin the Helmfile version in CI.
More on Hooks, Tests, GitOps & Secrets
`Error: INSTALLATION FAILED: failed post-install: job failed: BackoffLimitExceeded`Beginner`Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition`Intermediate`Error: UPGRADE FAILED: pre-upgrade hooks failed: warning: Hook pre-upgrade shop/templates/migrate-job.yaml failed: jobs.batch "shop-migrate" already exists`BeginnerThe migration hook fails with `psql: error: connection to server at "shop-postgres" (10.96.12.4), port 5432 failed: Connection refused` on first install.IntermediateOn upgrade, the migration Job runs the **old** SQL even though the chart contains new migration files.Advanced`helm test` fails with `Error: unable to get pod logs for shop-test-api: pods "shop-test-api" not found`.Intermediate