Skip to content

Commit

Permalink
helm: Fix selector labels for the operator deployment
Browse files Browse the repository at this point in the history
Use tetragon-operator.selectorLabels instead of tetragon-operator.labels
for selector labels. tetragon-operator.labels contains the helm.sh/chart
label which differs among different versions (e.g. tetragon-1.0.0-rc.1).
Helm upgrade fails because spec.selector field is immutable.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
  • Loading branch information
michi-covalent committed Oct 23, 2023
1 parent 9ede228 commit b927908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/kubernetes/templates/operator_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
selector:
matchLabels:
{{- include "tetragon-operator.labels" . | nindent 6 }}
{{- include "tetragon-operator.selectorLabels" . | nindent 6 }}
replicas: 1
template:
metadata:
Expand Down

0 comments on commit b927908

Please sign in to comment.