Repository navigation
Remove deprecated '--create-pods' flag - #31023
Merged
Merged
Conversation
Signed-off-by: George Jenkins <[email protected]>
yxxhero
added a commit
to helmfile/helmfile
that referenced
this pull request
Oct 16, 2026
* fix: skip recreatePods on Helm 4, which removed --recreate-pods - Helm 4 removed `--recreate-pods` (helm/helm#31023) and fails with "unknown flag", so a release with `recreatePods: true` broke `sync` and `apply`. On Helm 4 the flag is now left out with a warning; Helm 3 still receives it. - The upgrade flag tests gain Helm 4 cases, and the existing ones are pinned to Helm 3 so they no longer depend on the installed helm binary. - A test checks that the warning names the release on Helm 4 and is not logged on Helm 3. - The configuration docs note that recreatePods is ignored on Helm 4. Signed-off-by: Cayan <[email protected]> * refactor: flatten recreatePods flag logic in flagsForUpgrade Drop the nested if-in-if and the st.logger nil-guard: no other log call in state.go nil-checks the logger (e.g. the --color Helm 4 skip). Compute recreatePodsEnabled and branch via a tagless switch, matching the switch style already used elsewhere in state.go: warn on Helm 4, append --recreate-pods otherwise. The flagsForUpgrade table runner now uses the shared discard logger so the Helm 4 recreate-pods cases log safely. Signed-off-by: yxxhero <[email protected]> --------- Signed-off-by: Cayan <[email protected]> Signed-off-by: yxxhero <[email protected]> Co-authored-by: yxxhero <[email protected]>
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.
What this PR does / why we need it:
The upgrade
--recreate-podsflag was deprecated in Helm 3: #6463Remove this flag, and associated action fields/code
Special notes for your reviewer:
Users should for long be utilizing a deployment annotation: https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
If applicable:
docs neededlabel should be applied if so)