Skip to content
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(v1.2.3 -> v1.3.0) failed with Helm 3 #483

Closed
mcavoyk opened this issue Jan 7, 2020 · 1 comment
Closed

Upgrade(v1.2.3 -> v1.3.0) failed with Helm 3 #483

mcavoyk opened this issue Jan 7, 2020 · 1 comment

Comments

@mcavoyk
Copy link

mcavoyk commented Jan 7, 2020

helm version
version.BuildInfo{Version:"v3.0.2", GitCommit:"19e47ee3283ae98139d98460de796c1be1e3975f", GitTreeState:"clean", GoVersion:"go1.13.5"}

Helm upgrade failed because stateful sets cannot be patched:

Error: UPGRADE FAILED: cannot patch "harbor-database" with kind StatefulSet: StatefulSet.apps "harbor-database" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden. && 
cannot patch "harbor-redis" with kind StatefulSet: StatefulSet.apps "harbor-redis" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden.

Some googling leads me to believe this is related to Helm 3's three-way strategic merge patch and the immutability of spec.VolumeClaimTemplate.metadata.labels as mentioned in this issue helm/charts#7803

@mcavoyk
Copy link
Author

mcavoyk commented Jan 22, 2020

Looks like this is specific to Helm releases which were migrated with the helm 2to3 plugin. The heritage label on the VolumeClaimTemplate in statefulsets changed from Tiller -> Helm, helm/charts#19231.

I manually worked around this issue by pulling the chart locally and changing the heritage label back to Tiller, maybe Helm will have a better solution for this in the future but it doesn't seem like this is a problem with the Harbor chart specifically.

@mcavoyk mcavoyk closed this as completed Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant