Repository navigation
feat: support Helm 4 --rollback-on-failure alongside deprecated --atomic - #2722
Merged
Merged
Conversation
yxxhero
requested review from
aditmeno,
itscaro,
mumoshu,
xiaomudk and
zhaque44
as code owners
July 31, 2026 12:56
…mic (#2712) Helm 4 renamed the `--atomic` flag to `--rollback-on-failure` (helm/helm#13629). The old flag still works under Helm 4 but is deprecated (prints a warning) and slated for removal in Helm 5. Add a `rollbackOnFailure` key to both `helmDefaults` (HelmSpec) and `releases[]` (ReleaseSpec) that emits `--rollback-on-failure`. It requires Helm 4+ (errors otherwise) and is mutually exclusive with `atomic`. Additionally, when the resolved Helm binary is v4+, an existing `atomic: true` now emits `--rollback-on-failure` instead of `--atomic`, so users are migrated off the deprecated flag automatically without any config change. On older Helm, `atomic: true` continues to emit `--atomic`. Updated the spew-based values-ID hashes in temp_test.go that change whenever ReleaseSpec gains a field (same approach as the --force-conflicts change in #2480). Closes #2712. Signed-off-by: yxxhero <[email protected]>
…#2712) Covers the end-to-end plumbing that unit tests cannot (real helm version detection + cluster deploy) via test/integration/run.sh: 1. atomic: true parses, deploys a ConfigMap, and emits the version-correct flag: --rollback-on-failure on Helm 4 (auto-migration of the deprecated --atomic) and --atomic on Helm 3. 2. rollbackOnFailure: true emits --rollback-on-failure on Helm 4 and is rejected with a clear Helm-4-required error on Helm 3. Flag assertions grep the `exec: helm upgrade --install` lines logged under --debug, matching flags as standalone tokens so the release name "issue-2712-atomic" cannot be confused with the "--atomic" flag. Verified locally against Helm 4.2.3: both atomic:true and rollbackOnFailure:true emit --rollback-on-failure with no --atomic. Signed-off-by: yxxhero <[email protected]>
yxxhero
force-pushed
the
fix/support-rollback-on-failure-2712
branch
from
July 31, 2026 14:02
dce550b to
94af9b8
Compare
xiaomudk
approved these changes
Jul 31, 2026
hbjydev
pushed a commit
to hbjydev/phoebe
that referenced
this pull request
Aug 27, 2026
…278) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aqua:helmfile/helmfile](https://github.com/helmfile/helmfile) | tools | patch | `1.7.0` → `1.7.4` | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/141) for more information. --- ### Release Notes <details> <summary>helmfile/helmfile (aqua:helmfile/helmfile)</summary> ### [`v1.7.4`](https://github.com/helmfile/helmfile/releases/tag/v1.7.4) [Compare Source](helmfile/helmfile@v1.7.3...v1.7.4) #### What's Changed - build(deps): bump github.com/sashabaranov/go-openai from 1.41.2 to 1.42.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2735](helmfile/helmfile#2735) - build(deps): bump gitpython from 3.1.57 to 3.1.58 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2737](helmfile/helmfile#2737) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.3 to 1.106.4 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2736](helmfile/helmfile#2736) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.4 to 1.107.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2740](helmfile/helmfile#2740) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.34 to 1.32.35 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2739](helmfile/helmfile#2739) - fix([#​2741](helmfile/helmfile#2741)): prefetch shared remote charts instead of serializing sync by [@​toms-place](https://github.com/toms-place) in [#​2743](helmfile/helmfile#2743) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.107.0 to 1.107.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2744](helmfile/helmfile#2744) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.35 to 1.32.36 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2745](helmfile/helmfile#2745) - Bumping Helm versions to 3.21.4 and 4.2.4 by [@​yxxhero](https://github.com/yxxhero) with [@​Copilot](https://github.com/Copilot) in [#​2746](helmfile/helmfile#2746) - refactor: drop empty-render workaround now that chartify handles it natively by [@​yxxhero](https://github.com/yxxhero) in [#​2747](helmfile/helmfile#2747) #### New Contributors - [@​toms-place](https://github.com/toms-place) made their first contribution in [#​2743](helmfile/helmfile#2743) **Full Changelog**: <helmfile/helmfile@v1.7.3...v1.7.4> ### [`v1.7.3`](https://github.com/helmfile/helmfile/releases/tag/v1.7.3) [Compare Source](helmfile/helmfile@v1.7.2...v1.7.3) #### What's Changed - build(deps): bump docker/login-action from 4 to 4.5.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2723](helmfile/helmfile#2723) - fix: skip chartification when chart renders zero resources by [@​ankit090701](https://github.com/ankit090701) in [#​2724](helmfile/helmfile#2724) - feat: add --skip-diff-validation-on-install CLI flag by [@​henrichter-sap](https://github.com/henrichter-sap) in [#​2728](helmfile/helmfile#2728) - bump helm-diff to v3.15.11 by [@​yxxhero](https://github.com/yxxhero) with [@​Copilot](https://github.com/Copilot) in [#​2725](helmfile/helmfile#2725) - fix: update helm plugins via uninstall+reinstall to honor pinned version by [@​yxxhero](https://github.com/yxxhero) in [#​2727](helmfile/helmfile#2727) - build(deps): bump docker/login-action from 4.5.2 to 4.6.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2729](helmfile/helmfile#2729) - build(deps): bump gitpython from 3.1.54 to 3.1.57 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2730](helmfile/helmfile#2730) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.2 to 1.106.3 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2731](helmfile/helmfile#2731) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.31 to 1.32.34 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2732](helmfile/helmfile#2732) - build(deps): bump github.com/helmfile/chartify from v0.28.0 to v0.28.1 by [@​yxxhero](https://github.com/yxxhero) in [#​2733](helmfile/helmfile#2733) #### New Contributors - [@​ankit090701](https://github.com/ankit090701) made their first contribution in [#​2724](helmfile/helmfile#2724) - [@​henrichter-sap](https://github.com/henrichter-sap) made their first contribution in [#​2728](helmfile/helmfile#2728) **Full Changelog**: <helmfile/helmfile@v1.7.2...v1.7.3> ### [`v1.7.2`](https://github.com/helmfile/helmfile/releases/tag/v1.7.2) [Compare Source](helmfile/helmfile@v1.7.1...v1.7.2) #### What's Changed - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.1 to 1.105.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2707](helmfile/helmfile#2707) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.30 to 1.32.31 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2708](helmfile/helmfile#2708) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.2 to 1.106.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2709](helmfile/helmfile#2709) - build(deps): bump google.golang.org/grpc from 1.82.0 to 1.82.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2711](helmfile/helmfile#2711) - build(deps): bump gitpython from 3.1.50 to 3.1.52 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2710](helmfile/helmfile#2710) - feat: add --repo-retries for helm repo and registry login commands by [@​yxxhero](https://github.com/yxxhero) in [#​2683](helmfile/helmfile#2683) - build(deps): bump github.com/helmfile/vals from 0.44.5 to 0.45.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2713](helmfile/helmfile#2713) - build(deps): bump github.com/mattn/go-runewidth from 0.0.24 to 0.0.27 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2714](helmfile/helmfile#2714) - build(deps): bump gitpython from 3.1.52 to 3.1.54 in /docs by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2715](helmfile/helmfile#2715) - build(deps): bump go.yaml.in/yaml/v3 from 3.0.4 to 3.0.5 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2716](helmfile/helmfile#2716) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.0 to 1.106.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2719](helmfile/helmfile#2719) - feat: support Helm 4 --rollback-on-failure alongside deprecated --atomic by [@​yxxhero](https://github.com/yxxhero) in [#​2722](helmfile/helmfile#2722) **Full Changelog**: <helmfile/helmfile@v1.7.1...v1.7.2> ### [`v1.7.1`](https://github.com/helmfile/helmfile/releases/tag/v1.7.1) [Compare Source](helmfile/helmfile@v1.7.0...v1.7.1) #### What's Changed - build(deps): bump github.com/zclconf/go-cty from 1.18.1 to 1.19.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2692](helmfile/helmfile#2692) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.27 to 1.32.28 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2693](helmfile/helmfile#2693) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.104.2 to 1.105.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2694](helmfile/helmfile#2694) - build(deps): bump golang.org/x/sync from 0.21.0 to 0.22.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2695](helmfile/helmfile#2695) - build(deps): bump golang.org/x/term from 0.44.0 to 0.45.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2696](helmfile/helmfile#2696) - chore: bump helm to v4.2.3 and v3.21.3 by [@​yxxhero](https://github.com/yxxhero) in [#​2699](helmfile/helmfile#2699) - feat: center section divider to match table width by [@​yxxhero](https://github.com/yxxhero) in [#​2698](helmfile/helmfile#2698) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.28 to 1.32.29 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2697](helmfile/helmfile#2697) - build(deps): bump github.com/mattn/go-runewidth from 0.0.19 to 0.0.24 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2700](helmfile/helmfile#2700) - docs: add OCI auth troubleshooting by [@​dashitongzhi](https://github.com/dashitongzhi) in [#​2679](helmfile/helmfile#2679) - fix: ensure OCI registry login when SkipRepos is set by [@​yxxhero](https://github.com/yxxhero) in [#​2701](helmfile/helmfile#2701) - build(deps): bump github.com/helmfile/chartify from 0.27.0 to 0.28.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2702](helmfile/helmfile#2702) - build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.0 to 1.105.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2703](helmfile/helmfile#2703) - build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.29 to 1.32.30 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2704](helmfile/helmfile#2704) - feat: support disabling hooks by [@​fabiobaiao](https://github.com/fabiobaiao) in [#​2691](helmfile/helmfile#2691) - build(deps): bump github.com/helmfile/vals from 0.44.4 to 0.44.5 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2706](helmfile/helmfile#2706) - build(deps): bump actions/setup-go from 6 to 7 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2705](helmfile/helmfile#2705) - feat: support disabling insecure template functions only by [@​fabiobaiao](https://github.com/fabiobaiao) in [#​2689](helmfile/helmfile#2689) #### New Contributors - [@​dashitongzhi](https://github.com/dashitongzhi) made their first contribution in [#​2679](helmfile/helmfile#2679) - [@​fabiobaiao](https://github.com/fabiobaiao) made their first contribution in [#​2691](helmfile/helmfile#2691) **Full Changelog**: <helmfile/helmfile@v1.7.0...v1.7.1> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/London) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjAuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjQ2LjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvcGF0Y2giXX0=--> Reviewed-on: https://forgejo.hayden.moe/hayden/phoebe/pulls/278
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
helmfile 1.7.2 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.1 to 1.105.2 by @dependabot[bot] in helmfile/helmfile#2707 * build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.30 to 1.32.31 by @dependabot[bot] in helmfile/helmfile#2708 * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.2 to 1.106.0 by @dependabot[bot] in helmfile/helmfile#2709 * build(deps): bump google.golang.org/grpc from 1.82.0 to 1.82.1 by @dependabot[bot] in helmfile/helmfile#2711 * build(deps): bump gitpython from 3.1.50 to 3.1.52 in /docs by @dependabot[bot] in helmfile/helmfile#2710 * feat: add --repo-retries for helm repo and registry login commands by @yxxhero in helmfile/helmfile#2683 * build(deps): bump github.com/helmfile/vals from 0.44.5 to 0.45.0 by @dependabot[bot] in helmfile/helmfile#2713 * build(deps): bump github.com/mattn/go-runewidth from 0.0.24 to 0.0.27 by @dependabot[bot] in helmfile/helmfile#2714 * build(deps): bump gitpython from 3.1.52 to 3.1.54 in /docs by @dependabot[bot] in helmfile/helmfile#2715 * build(deps): bump go.yaml.in/yaml/v3 from 3.0.4 to 3.0.5 by @dependabot[bot] in helmfile/helmfile#2716 * build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.0 to 1.106.2 by @dependabot[bot] in helmfile/helmfile#2719 * feat: support Helm 4 --rollback-on-failure alongside deprecated --atomic by @yxxhero in helmfile/helmfile#2722 **Full Changelog**: https://github.com/helmfile/helmfile/compare/v1.7.1...v1.7.2</pre> <p>View the full release notes at <a href="https://github.com/helmfile/helmfile/releases/tag/v1.7.2">https://github.com/helmfile/helmfile/releases/tag/v1.7.2</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!15569
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #2712.
Helm 4 renamed
--atomicto--rollback-on-failure(helm/helm#13629). The old flag still works on Helm 4 but is deprecated (prints a warning) and is slated for removal in Helm 5. Helmfile had no way to emit the new flag — the only key wasatomic, which always produced--atomic.This PR implements both options suggested in the issue:
rollbackOnFailurekey onhelmDefaults(HelmSpec) andreleases[](ReleaseSpec) → emits--rollback-on-failure. Requires Helm 4+ (errors otherwise) and is mutually exclusive withatomic.atomic→ when the resolved Helm binary is v4+, an existingatomic: truenow emits--rollback-on-failureinstead of--atomic, so users (e.g. the jenkins-infra reporter) stop seeing the deprecation warning with zero config changes. On Helm ≤3,atomic: truecontinues to emit--atomic.The implementation mirrors the existing
force/forceConflictspattern (version-conditional flag translation + mutual exclusivity + version guard).Changes
pkg/state/state.go— addRollbackOnFailurefields onHelmSpec/ReleaseSpec; flag-building logic inflagsForUpgrade.pkg/state/state_test.go— 12 cases covering all resolution branches (mirrors theforce/forceConflictssuite, plus the Helm 4 migration cases).pkg/state/temp_test.go— refreshed spew-based values-ID hashes that shift wheneverReleaseSpecgains a field (same approach as the--force-conflictsPR feat: add --force-conflicts flag support for Helm 4 #2480).docs/configuration.md— documentrollbackOnFailureand the atomic→rollback-on-failure migration.test/integration/— new integration test (issue-2712-rollback-on-failure) verifying end-to-end: parse acceptance, flag emission with real version detection, cluster deploy, and the Helm 3 version guard.Verification
go vet ./...clean,gofmtcleango test ./pkg/...passes (incl. 12 atomic/rollback cases inflagsForUpgrade)helmfilebinary:rollbackOnFailure: true→helm upgrade --install ... --rollback-on-failure ...atomic: true→helm upgrade --install ... --rollback-on-failure ...(auto-migration, no--atomicwarning)Notes
atomicis only used inflagsForUpgrade(not diff/template), which is correct since--rollback-on-failure/--atomiconly apply to install/upgrade.ReleaseSpecfield shifts the spew-based values-ID hashes intemp_test.go; this is expected and follows the precedent of feat: add --force-conflicts flag support for Helm 4 #2480. The values-ID is only a temp filename, so the hash change has no deployment impact.Signed-off-by: yxxhero [email protected]