-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
We merged in the chart for the COH 3.2 operator (from 3.1.5) into our [Verrazzano] repo, (https://github.com/verrazzano/verrazzano), but our upgrade scenario from 3.1.5 -> 3.2 is failing, looks like it’s complaining on the helm upgrade command about trying to change immutable selector fields.
I can repro this in our repo using an empty kind cluster, doing the following:
- checked out the release-0.17 branch in Verrazzano (which contains the 3.1.5 chart)
- Do a helm upgrade/install of coh:
$ cd ../../thirdparty/charts/coherence-operator/
$ helm upgrade --install coh .
Checked out master (with 3.2) and upgraded again, and got the same result:
$ git switch master
$ helm upgrade --install coh .
Error: UPGRADE FAILED: cannot patch "coherence-operator" with kind Deployment: Deployment.apps "coherence-operator" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"manager", "app.kubernetes.io/instance":"coherence-operator-manager", "app.kubernetes.io/name":"coherence-operator", "app.kubernetes.io/version":"3.2.0", "control-plane":"coherence"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
If I locally revert the changes around the selector labels in the 3.2 chart, the upgrade command above passes.
Using --force does not fix it either. So it seems like an issue with upgrading using the COH helm chart.
Metadata
Metadata
Assignees
Labels
No labels