Support helm release upgrade on helm chart name change#1447
Open
MichaelMorrisEst wants to merge 1 commit intofluxcd:mainfrom
Open
Support helm release upgrade on helm chart name change#1447MichaelMorrisEst wants to merge 1 commit intofluxcd:mainfrom
MichaelMorrisEst wants to merge 1 commit intofluxcd:mainfrom
Conversation
This re-introduces support that was lost going from 2.1.x -> 2.2.x but controls the behaviour through a feature gate so either the previous or current behaviour (default) can be achieved Signed-off-by: MichaelMorris <michael.morris@est.tech>
hiddeco
reviewed
Mar 19, 2026
| // opt-in from v1.5.2 | ||
| DefaultToRetryOnFailure: false, | ||
| // UninstallOnChartNameChange | ||
| // opt-in from v1.5.4 |
Member
There was a problem hiding this comment.
The chance of this going into a patch release is unlikely, this should thus indicate 1.6.0.
| targetReleaseNamespace = "release namespace" | ||
| targetReleaseName = "release name" | ||
| targetChartName = "chart name" | ||
| TargetChartName = "chart name" |
Member
There was a problem hiding this comment.
This list of constants was always meant to be a descriptive reason (factored out to a const for code readability), not an identifier. Additionally, only exposing one of them creates a weak contract. I would prefer a solution where:
- All identifiers are public
- Identifiers do not contain spaces
Member
|
Some additional thoughts:
|
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 #870
Proposes to add a new feature gate
UninstallOnChartNameChange.When enabled (default), the current behaviour of uninstalling a Helm Release when the Helm chart name is changed shall remain unchanged. This results in a new Helm Release install.
When disabled, the Helm Release will not be uninstalled when the Helm chart name is changed. This results in a Helm upgrade being performed. This was the behaviour before Flux 2.2.0
This re-introduces support that was lost going from Flux 2.1.x -> 2.2.x but controls the behaviour through a feature gate so either the previous or current behaviour (default) can be achieved
Changes
UninstallOnChartNameChangefeature gate in internal/features/features.gomain.gotoHelmReleaseReconcilerfalseand the chart name has changed do not uninstall the HelmReleaseaction.targetChartNameto enable it to be referenced in the HelmRelease controller