-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Upgrade to new chart version and --set a value at the same time with --reuse-values ignores changes from values.yaml #3957
Comments
The design goal is to prevent changes from a new chart release's values from automatically being applied. This is a task that cannot be done any other way than by explicitly telling the server to do it. So it gets its own flag. Your desired workflow can be accomplished by doing a
|
Thanks for your response. From the help:
Here 'last release's values' means
I couldn't find anything in the docs that said that the values from the chart are ignored, though if one understands that "last release's values" means "computed values", then this fact can be deduced.
From what I have seen, I know this isn't strictly on the topic of the issue, so if there is discussion about this elsewhere I would be happy to close this and discuss it there instead. |
I hit the same thing today. @technosophos What you describe is fine workaround for CI and scripting, but consider the following case, where the user is simply upgrading to a new version of a chart, some values were added to the default Doesn't it make sense at least for the case where chart is different version of the currently deployed, to have the default |
Current behavior of So, for example, if I add following snippet to some deployment definition: + ports:
+ - containerPort: {{ .Values.metrics.port }}
+ name: metrics And values for it: + monitoring:
+ port: 8001 And then execute Then I get following error:
While expected result is to perform upgrade using new default values. At the same time all testing commands like |
That is the EXACT design of If you want to use both new templates and new values, don't use Perhaps we need to make it abundantly clear that |
#8085 describes a new feature flag to handle this alternative use case, which seems reasonable. |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
I do not think this should be “stale”; wasted a couple hours trying to understand what was wrong with my chart, when the answer was nothing. I would like to see helm upgrade --keep-values $release $chart which would effectively do helm get values -o yaml $release > /tmp/v.yaml
helm upgrade -f /tmp/v.yaml $release $chart |
Agreed. I ran into this issue today too. I don't think the behavior of the |
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>
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>
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
Not stale. Also there is pull request to fix this: #9653 |
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
Auto DevOps uses --reuse-values which means that the chart's default values.yaml does not get applied. See helm/helm#3957 (comment). To resolve this we need to introduce defaults in the chart as well.
Output of
helm version
:Output of
kubectl version
:Cloud Provider/Platform (AKS, GKE, Minikube etc.):
Kubeadm cluster on vsphere
I can demonstrate the problem with the chart created with
helm create
, but it is not specific to that chart in any wayThis behavior is unexpected, and will be hard to people to debug if they are not very familiar with all the new values introduced by a new chart version.
The text was updated successfully, but these errors were encountered: