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
[stable/cockroachdb] StatefulSet upgrade fails because of chart label present in selector #8102
Comments
rio
changed the title
[stable/cockroachdb] StatefulSet upgrade failes because of chart label present in selector
[stable/cockroachdb] StatefulSet upgrade fails because of chart label present in selector
Oct 2, 2018
For reference here is the general problem described #7680 |
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Just like with the redis chart StatefulSet upgrades fail through the helm upgrade mechanism. This is because no explicit selector is set on the StatefulSet so it defaults to whatever is set in the template's labels. This includes the chart version which changes with every upgrade. Because the selector cannot be changed after the creation of the StatfulSet the upgrade fails because the template's chart label does get updated and so the selector doesn't match anymore.
This is how the redis chart fixed it: c3bbcad#diff-bff5387866dba6e2bb69e1feba09ea9b
Sadly this would mean a breaking change to the chart and downtime as the StatefulSet needs to be deleted.
The text was updated successfully, but these errors were encountered: