helmfile HCL values allow overrides across imported files
Introduced 2026-02-25 · score 0.95
HOW TO USE IT
When multiple imported `.hcl` files define the same key in `values` blocks, define the override in the later-loaded file. Maps merge per key; lists are replaced as a whole, and mixed-type overrides use the later value and type.
# values1.hcl
values {
my_var = 1
}
# values2.hcl
values {
my_var = 2
}WHY THIS HELPS
When layering Helmfile values across imported HCL files, define the same key in a later file to override the earlier value.
BEFORE THIS CHANGE
Avoid defining the same variable in multiple HCL `values` blocks because it caused a variable naming collision; use distinct variables and merge them instead.
REQUIREMENTS AND LIMITATIONS
- Version: v1.3.2
- values block key (required): The key to define in each imported HCL `values` block; later files override earlier files. Map values merge per key; lists are replaced as a whole; mixed types use the latest value and type.
- HCL file order (required): List the imported `.hcl` files in load order; the last file loaded wins for duplicate keys.
- Prerequisite: HCL is supported for environment values; only files suffixed `.hcl` are interpreted as HCL.
FIRST-PARTY EVIDENCE
- https://github.com/helmfile/helmfile/releases/tag/v1.3.2
- https://github.com/helmfile/helmfile/pull/2402
- https://github.com/helmfile/helmfile/blob/main/docs/environments.md
Check the installed version and the source before using it. Entry JSON