Closed evanrich closed 9 months ago
Hey, thanks for creating this issue! Unfortunately there is nothing that I can do about that. Since Kubernetes makes the labelSelector immutable an in-place upgrade of Deployments unfortunately isn't possible. I will add this to the upgrade notes!
For some more backround: https://www.datree.io/resources/kubernetes-error-codes-field-is-immutable
FWIW, I was able to work around this using ArgoCD's options:
Force, Skip Schema Validation, and Replace
this combination basically replaced the chart with the new one. to be safe re: my PVC, i set it's retention policy to "Retain" first so it wouldn't delete in case of the forced replacement, the container came up with the new chart, and everything else persisted. Leaving this in case anyone else runs into the same issue.
Thanks!
Details
What steps did you take and what happened:
Tried to upgrade 1.5.1 -> 2.x, followed the values.yaml changes as best i could. Ran through argoCD to update, it fails to deploy because of an immutable field
exact error:
1.5.1 format:
2.x format:
am I missing something here? the values seem to lint fine to ArgoCD. thanks! FWIW, this is what ArgoCD shows as the deltas:![image](https://github.com/bjw-s/helm-charts/assets/518320/edfda22c-34ed-4513-85e8-a4d0806b0fb6)
And the section in particular:![image](https://github.com/bjw-s/helm-charts/assets/518320/52570fd5-5233-4a27-8cab-2e3816d46486)