{
  "slug": "helmfile-hcl-values-allow-overrides-across-imported-files-a04516521a78",
  "title": "helmfile HCL values allow overrides across imported files",
  "tools": [
    "helmfile"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-25T05:04:07.000Z",
  "announced_at": "2026-02-25T05:04:07.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "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.",
    "examples": [
      "# values1.hcl\nvalues {\n  my_var = 1\n}\n\n# values2.hcl\nvalues {\n  my_var = 2\n}"
    ],
    "gotchas": [
      "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."
    ]
  },
  "why_it_matters": "When layering Helmfile values across imported HCL files, define the same key in a later file to override the earlier value.",
  "before": "Avoid defining the same variable in multiple HCL `values` blocks because it caused a variable naming collision; use distinct variables and merge them instead.",
  "sources": [
    "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"
  ],
  "rank": 0.95028,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-ed23140b6b8a64d1-0:gate",
    "evidence_hash": "1c5d8b5df20878b5bb1595c6016c5d85b2b753dc398fb417e6a4b60574f413d5"
  },
  "review": {
    "draft_hash": "7cf8633a3e38a1cfc5d7f44af9b682a7ba68fc7ddaf9c2e0178b6e494eb45dd1",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
