incubator-devlake-helm-chart
incubator-devlake-helm-chart copied to clipboard
field is immutable when upgrading
When upgrading from 0.20.0-beta8 to 0.20.0-beta9 I get this error:
Error:
cannot patch "devlake-ui" with kind Deployment: Deployment.apps "devlake-ui" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string
]string{
"app.kubernetes.io/instance": "devlake",
"app.kubernetes.io/name": "devlake",
"devlakeComponent": "ui"
}, MatchExpressions: []v1.LabelSelectorRequirement(nil)
}: field is immutable
cannot patch "devlake-lake" with kind Deployment: Deployment.apps "devlake-lake" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string
]string{
"app.kubernetes.io/instance": "devlake",
"app.kubernetes.io/name": "devlake",
"devlakeComponent": "lake"
}, MatchExpressions: []v1.LabelSelectorRequirement(nil)
}: field is immutable
I also experienced the same thing when upgrading from 0.19.0 to 0.21.0-beta6. Updating is difficult because deployment's spec.selector.matchLables is immutable.
I store the collected data in aws rds. So, after deleting deployment devlake-ui and devlake-lake, I upgraded to helm.