You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
Helm upgrade failed because stateful sets cannot be patched:
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#7803The text was updated successfully, but these errors were encountered: