sincecutoff.com
← all changes

helmfile releaseSpec adds conditionTemplate

Introduced 2026-07-04 · score 0.97

HOW TO USE IT

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.

releases: - name: <release-name> chart: <repository/chart> conditionTemplate: '{{`{{ eq .Release.Namespace "kube-system" }}`}}'

WHY THIS HELPS

Enable or disable releases dynamically based on templated release conditions.

BEFORE THIS CHANGE

Use `condition` as a direct `true` or `false` value, or as a values lookup path ending in `.enabled`.

REQUIREMENTS AND LIMITATIONS

  • 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`.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card