Skip to content

Commit e4e18b9

Browse files
committed
fix(helm): allow setting pod labels
Since #1538 landed, it's not possible to set additional pod labels. The only way of setting pod labels would be to change `grafana-operator.selectorLabels`, but doing that breaks current deployments as selector labels are immutable. `grafana-operator.labels` includes `grafana-operator.selectorLabels`, so it's safe to include them instead in the pod labels, and doing so fixes the current issue without causing side-effects. fixes #1546 #1642
1 parent c3a0c18 commit e4e18b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/helm/grafana-operator/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
{{- toYaml . | nindent 8 }}
1919
{{- end }}
2020
labels:
21-
{{- include "grafana-operator.selectorLabels" . | nindent 8 }}
21+
{{- include "grafana-operator.labels" . | nindent 8 }}
2222
app.kubernetes.io/component: operator
2323
spec:
2424
{{- with .Values.imagePullSecrets }}

0 commit comments

Comments
 (0)