{
  "slug": "helmfile-template-apply-sync-add-template-args-for-helm-lookup-support-582e264610ed",
  "title": "helmfile template/apply/sync add --template-args for helm lookup() support",
  "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 chart uses `lookup()` and rendering needs live cluster values, pass `--template-args=\"--dry-run=server\"` to `helmfile template`, `apply`, or `sync`. `--template-args` forwards extra arguments to Helm rendering.",
    "examples": [
      "helmfile template --template-args=\"--dry-run=server\"",
      "helmfile apply --template-args=\"--dry-run=server\"",
      "helmfile sync --template-args=\"--dry-run=server\""
    ],
    "gotchas": [
      "Version: v1.7.0",
      "--template-args <string>: Extra arguments appended to Helm rendering; the default is empty. `--dry-run=server` enables a server connection for `lookup()`.",
      "--dry-run=server: Helm server-side dry run; requires cluster connectivity. Pass it as the value to `--template-args` when rendering needs `lookup()`.",
      "Prerequisite: `--dry-run=server` requires cluster connectivity. Helm uses its Kubernetes connection configuration for `lookup()`; API access errors fail template processing."
    ]
  },
  "why_it_matters": "Render or apply Helm charts that use `lookup()` from a Helmfile workflow.",
  "sources": [
    "https://github.com/helmfile/helmfile/releases/tag/v1.7.0",
    "https://github.com/helmfile/helmfile/blob/main/docs/cli.md",
    "https://github.com/helmfile/helmfile/blob/v1.7.0/cmd/sync.go",
    "https://github.com/helmfile/helmfile/blob/v1.7.0/cmd/apply.go",
    "https://helm.sh/docs/chart_template_guide/debugging/"
  ],
  "rank": 0.93021,
  "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-0:gate",
    "evidence_hash": "f9c425cf2cf3d35a03e3c37f629b30cb6a1f01b1785a44cc302186bd7fa035a6"
  },
  "review": {
    "draft_hash": "ad800b5287858f4f78024ccfa45abe1687ad0ce83f5bdd8fe8d780931bef0c68",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1-20261014:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
