This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Putting chart version in spec.VolumeClaimTemplate.metadata.labels of a StatefulSet prevents ANY future upgrade of existing Release #7803
Comments
This was referenced Sep 18, 2018
This was referenced Sep 25, 2018
This was referenced Oct 19, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
stale
bot
added
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
and removed
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
labels
Nov 18, 2018
#8527 for couchdb not merged yet. |
#8527 is merged 🎉 |
maeb
added a commit
to nlnwa/charts
that referenced
this issue
Jan 15, 2019
This was referenced Mar 20, 2019
Can anyone confirm (or disprove) that this issue also affects incubator/cassandra and would be fixed by #12402 ? Thanks! |
Thanks ! Yes, it should solve the problem. |
This was referenced May 20, 2019
srueg
pushed a commit
to appuio/charts
that referenced
this issue
Jun 14, 2019
Otherwise updates are not possible. See this issue [1] for more details. [1] helm/charts#7803 Signed-off-by: Simon Rüegg <simon.ruegg@vshn.ch>
3 tasks
beshkenadze
added a commit
to caesar-team/helm-charts
that referenced
this issue
Jul 30, 2019
Due to the bug helm/charts#7803
feikesteenbergen
pushed a commit
to timescale/helm-charts
that referenced
this issue
Aug 22, 2019
…tadata.labels being immutable (#8594) See helm/charts#7803 Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
We ran into the same issue in the stable/sonatype-nexus chart, when using the StatefulSet instead of the Deployment Option (statefulset.enabled=true). |
Merged
4 tasks
19 tasks
2 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
BUG REPORT
tl;dr: any Chart containing a StatefulSet (any version) using a chart version in a volumeClaimTemplate can't be upgraded
This is the third and hopefully the last bug regarding "I can't upgrade my Release".
Note:
Forewords
StatefulSet
, everything exceptspec.replicas
,spec.template
, andspec.updateStrategy
(i.espec.selector
andspec.VolumeClaimTemplate
is immutable)The problem
In some charts, we set the chart version (directly or through the
chart
template) inspec.VolumeClaimTemplate.metadata.labels
.This causes helm to attempt to change immutable fields and any upgrade (even if it ONLY change the version in Chart.yaml) will fail.
IN OTHER WORDS, SOME CHARTS OF THIS REPOSITORY ARE DEEPLY BROKEN AND CAN'T BE UPGRADED, only installed once.
Impacted charts
At least, impacted charts are:
stable/mariadb(fixed in [stable/mariadb] Fix issue with pvc on upgrades #7966)stable/redis(fixed in [stable/redis] Major version bump: Fix chart not being upgradable #7686)stable/rabbitmq(fixed in [stable/rabbitmq] Fix chart not being upgradable by removing mutable label from VolumeClaimTemplate #7687)incubator/couchdb(PR in Allow statefulSet updates #8527)incubator/patroni(PR in [incubator/patroni] Fix chart not being upgradable because of spec.VolumeClaimTemplate.metadata.labels being immutable #8594)How to reproduce (using stable/mariadb as an example)
Let's install the stable/mariadb chart using git, change the version in chart.yaml (example: 1.2.3 -> 1.2.4) without changing anything else, and try to upgrade. See it fail:
Because of spec.volumeClaimTemplate.0.metadata.labels in templates/master-statefulset.yaml containing:
It will fail with:
Let's remove this
chart
label, uninstall and try to reproduce: the bug is gone.Conclusion
and upgrade.
cc @mattfarina @scottrigby @juan131 @javsalgar @unguiculus @davidkarlsen @cpanato
The text was updated successfully, but these errors were encountered: