Commit a71eb8e
authored
fix: remove extra selector from network-operator Deployment (#654)
Remove `control-plane: {{ .Release.Name }}-controller` selector from the
network-operator object in the helm chart
to fix helm upgrade behaviour.
With the current selector we will have the following error when trying
to upgrade from the latest GA version (23.7)
```
helm upgrade -n nvidia-network-operator network-operator ./network-operator -f myvalues.yaml
Error: UPGRADE FAILED: cannot patch "network-operator" with kind Deployment: Deployment.apps "network-operator" is i
nvalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"n
etwork-operator", "app.kubernetes.io/name":"network-operator", "control-plane":"network-operator-controller"}, Match
Expressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
```
The extra selector was added as a part of
#6451 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
0 commit comments