-
Notifications
You must be signed in to change notification settings - Fork 7.3k
feat(helm): Add --reset-then-reuse-values flag to 'helm upgrade' #9653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When '--reset-then-reuse-values' is used on 'helm upgrade', the chart's values will be reset to the values of the deployed chart while the current release's values will be reused and merged with the values passed as argument (is any). '--reset-values' and '--reuse-values' flags take precedence over `--reset-then-reuse-values', making it ignored if one or the other is also used. Closes helm#8085, helm#3957 Signed-off-by: Quentin Devos <quentin@devos.pm>
bb82843
to
a9d59f9
Compare
@bacongobbler How can we move this forward? |
This would really improve our workflow 👍 Tested, and PR works as expected. Is there any additional work or review which needs to be done before this can be merged? |
This is exactly what we need for our current chart situation... is this going to be merged soon? |
Please merge this. I can't stress enough how broken the current experience is. |
Any idea why this simple, yet useful pull request isn't merged yet? |
This seems to solve my current headache. Any news? |
Is there any news on this one? |
This seems to solve my current headache. Any news? |
This would be a huge help for getting the expected upgrade behavior when using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@okhoshi is there anything blocking this PR? |
@mamoit No idea, not from my side at least. I don't have write access to this repo so I can't merge. |
Then @jglick, @asauber or @michi-covalent maybe? |
i don't have write access to the repo either. i just approved it because i love this PR ❤️ |
Signed-off-by: Joe Julian <me@joejulian.name>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this and it works with every scenario I could think of. Approving but this still needs to pass CI.
This is a quite useful PR, I have no special access either. |
@joejulian, it already passes continuous integration checks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @okhoshi for this contribution 👏
A few extra kudos: the linked issues and PR description fully explain the use case for this new feature and the reasoning for this particular solution over existing workarounds. The PR includes automated tests, which are sensible and pass CI automation (since @joejulian last merged in main). This has been peer reviewed by other Helm community members, and reviewed now by two maintainers. Merging now, so this should be included in the next scheduled feature release. 🚀
Per https://github.com/helm/helm/releases/tag/v3.13.2
Looking forward to finally having this fixed! |
Can't wait for it to be merged into the release-3.13 branch. @scottrigby : any blockers? |
OMG finally! Can't believe this is true, I have spent hours and hours explaining how helm is broken to every new developer. How --reuse-values breaks the system, ignoring all new values from the next version/release People just didn't get it. I don't want to know how many weeks I have spent on users not understanding when you can and when you can't use --reuse-values. This is how EVERYONE intuitively thinks it works, this parameter should be the default. The lack of this feature has hold back helm for to many years. This is the "it always works parameter". Thanks you 🙏 |
…4.0 (#634) * Allow fetching only user-supplied existing values * Add support for the --reset-then-reuse-values flag This flag was added in Helm v3.14.0; for details see helm/helm#9653. * Document --reset-then-reuse-values in the README * Add a comment referencing the new flag's origin * Move min Helm version check to narrower scope * Fix unintended name shadowing
What this PR does / why we need it:
When
--reset-then-reuse-values
is used on 'helm upgrade', the chart's values will be reset to the values of the deployed chart while the current release's values will be reused and merged with the values passed as argument (is any).--reset-values
and--reuse-values
flags take precedence over--reset-then-reuse-values
, making it ignored if one or the other is also used.This is a slight improvement over the many times suggested workaround of
helm get values > v.yaml; helm upgrade --reset-values --values v.yaml
in the sense that this flag allows for atomic operation.Closes #8085
Closes #3957
If applicable: