-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[incubator/cassandra] Fix chart not being upgradable by removing mutable label from volumeClaimTemplate #12402
Conversation
…value, add support for google credentials as a secret Signed-off-by: Simon Hardy <sha@taktik.com>
Signed-off-by: Simon Hardy <sha@taktik.com>
Signed-off-by: Simon Hardy <sha@taktik.com>
…ble label from VolumeClaimTemplate Signed-off-by: Simon Hardy <sha@taktik.com>
Hi @Simon3. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @maorfr |
/hold |
Yes, as explained in #7803, with the current version, if I try to run a
In other words, the only way to do an upgrade of a incubator/cassandra release currently is to delete the statefulset and perform the upgrade after, which is annoying and prevents us from doing a rolling upgrade. Note that we will have this problem even if there was no change in the statefulset (apart from the chart version). It seems like this behaviour is normal, and the standard way to fix this problem is to fix this is to remove the chart version from the labels of the volumeClaimTemplates (since it can't be updated by definition of statefulset). |
Which Chart version do you have ? I don't think that idea of changing it right know is good because this will break compatibility for other users. |
I'm using the latest version of the chart. The problem is that
Which depends on the chart version, which changes on every commit here. So it actually breaks compatibility for other users each time someone commits something here. Of course my change will do the same, but at least, subsequent commits and version bumps won't impact the statefulset, so the problem will be solved. |
Any news? |
Hello, This PR is mandatory, otherwise nobody can upgrade this chart. |
Signed-off-by: Simon Hardy <sha@taktik.com>
incubator/cassandra/README.md
Outdated
|
||
This version fixes https://github.com/helm/charts/issues/7803 by removing mutable labels in `spec.VolumeClaimTemplate.metadata.labels` so that it is upgradable. | ||
|
||
Before 0.12.0, in order to upgrade, you have to delete the Cassandra StatefulSet before upgrading: |
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.
"Until this version"?
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.
sure
Signed-off-by: Simon Hardy <sha@taktik.com>
@@ -181,7 +181,6 @@ spec: | |||
name: data | |||
labels: | |||
app: {{ template "cassandra.name" . }} | |||
chart: {{ template "cassandra.chart" . }} | |||
release: {{ .Release.Name }} | |||
heritage: {{ .Release.Service }} |
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.
One last thing: I think you can delete this one as well: https://github.com/helm/charts/blob/master/REVIEW_GUIDELINES.md#persistentvolumeclaim
Keeping it won't cause issue, but it may be better to delete.
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.
Which one? heritage
? Or the entire labels
?
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.
heritage
Signed-off-by: Simon Hardy <sha@taktik.com>
So again, I can't schedule my backups without restarting all my Cassandra pods... And this will be the case each time we bump this chart version until someone finally decides to merge this PR. @maver1ck could you do something please? it's been 2 weeks |
/approve |
/ok-to-test |
/approve @maver1ck, is this good to merge from your side? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: desaintmartin, maorfr, maver1ck, Simon3 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Are we good? |
/hold cancel |
Forgot about hold label :( |
…able label from volumeClaimTemplate (helm#12402) * [incubator/cassandra] rename backup.image.repository, update default value, add support for google credentials as a secret Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] cleanup Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] comment Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Fix chart not being upgradable by removing mutable label from VolumeClaimTemplate Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Update readme regarding chart not being upgradable Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] readme small update Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] remove heritage from volumeClaimTemplates labels Signed-off-by: Simon Hardy <sha@taktik.com>
…able label from volumeClaimTemplate (helm#12402) * [incubator/cassandra] rename backup.image.repository, update default value, add support for google credentials as a secret Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] cleanup Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] comment Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Fix chart not being upgradable by removing mutable label from VolumeClaimTemplate Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Update readme regarding chart not being upgradable Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] readme small update Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] remove heritage from volumeClaimTemplates labels Signed-off-by: Simon Hardy <sha@taktik.com>
…able label from volumeClaimTemplate (helm#12402) * [incubator/cassandra] rename backup.image.repository, update default value, add support for google credentials as a secret Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] cleanup Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] comment Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Fix chart not being upgradable by removing mutable label from VolumeClaimTemplate Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Update readme regarding chart not being upgradable Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] readme small update Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] remove heritage from volumeClaimTemplates labels Signed-off-by: Simon Hardy <sha@taktik.com>
…able label from volumeClaimTemplate (helm#12402) * [incubator/cassandra] rename backup.image.repository, update default value, add support for google credentials as a secret Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] cleanup Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] comment Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Fix chart not being upgradable by removing mutable label from VolumeClaimTemplate Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Update readme regarding chart not being upgradable Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] readme small update Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] remove heritage from volumeClaimTemplates labels Signed-off-by: Simon Hardy <sha@taktik.com>
…able label from volumeClaimTemplate (helm#12402) * [incubator/cassandra] rename backup.image.repository, update default value, add support for google credentials as a secret Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] cleanup Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] comment Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Fix chart not being upgradable by removing mutable label from VolumeClaimTemplate Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] Update readme regarding chart not being upgradable Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] readme small update Signed-off-by: Simon Hardy <sha@taktik.com> * [incubator/cassandra] remove heritage from volumeClaimTemplates labels Signed-off-by: Simon Hardy <sha@taktik.com>
What this PR does / why we need it:
Fix chart not being upgradable by removing mutable label from volumeClaimTemplate
Which issue this PR fixes
Special notes for your reviewer:
Note that this fix is a breaking change itself since it creates a modification (removal) of the label, but at least, subsequent chart version bumps will be safe.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]