{
  "slug": "helmfile-releasespec-adds-conditiontemplate-12b89257e3be",
  "title": "helmfile releaseSpec adds conditionTemplate",
  "tools": [
    "helmfile"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-04T12:14:36.000Z",
  "announced_at": "2026-07-04T12:14:36.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a release needs a dynamic enablement condition, set `conditionTemplate` to a Go template that renders a boolean. If both condition fields are set, its rendered value replaces `condition`; `list` does not evaluate it.",
    "examples": [
      "releases:\n  - name: <release-name>\n    chart: <repository/chart>\n    conditionTemplate: '{{`{{ eq .Release.Namespace \"kube-system\" }}`}}'"
    ],
    "gotchas": [
      "Version: v1.7.0",
      "conditionTemplate: String Go template for a release condition; it must render to a boolean. When both condition fields are set, its rendered value replaces `condition`.",
      "condition: Release enablement condition: direct `true` or `false`, or a values lookup path ending in `.enabled`. Replaced by the rendered `conditionTemplate` value when both are set.",
      "The rendered `conditionTemplate` must be boolean.",
      "`conditionTemplate` is not evaluated by the `list` command.",
      "If `condition` and `conditionTemplate` are both set, the rendered template value replaces `condition`."
    ]
  },
  "why_it_matters": "Enable or disable releases dynamically based on templated release conditions.",
  "before": "Use `condition` as a direct `true` or `false` value, or as a values lookup path ending in `.enabled`.",
  "sources": [
    "https://github.com/helmfile/helmfile/releases/tag/v1.7.0",
    "https://github.com/helmfile/helmfile/pull/2669",
    "https://github.com/helmfile/helmfile/blob/v1.7.0/docs/writing-helmfile.md",
    "https://github.com/helmfile/helmfile/blob/v1.7.0/docs/configuration.md"
  ],
  "rank": 0.97031,
  "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": "wave1-20261014",
    "verdict_id": "wave1-20261014:wave1-20261014-e744149cdbce4536-2:gate",
    "evidence_hash": "f9c425cf2cf3d35a03e3c37f629b30cb6a1f01b1785a44cc302186bd7fa035a6"
  },
  "review": {
    "draft_hash": "45edf6942c8685ae008136dae57b10ccc5623c0cc1245ec56c612f6e28627575",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1-20261014:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
