Skip to content

Commit 6f5b06e

Browse files
authored
Allow setting custom labels on mongo community operator (#350)
1 parent 9496ee9 commit 6f5b06e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/community-operator/templates/operator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ spec:
2121
metadata:
2222
labels:
2323
name: {{ .Values.operator.name }}
24+
{{- with .Values.operator.podLabels }}
25+
{{- toYaml . | nindent 8 }}
26+
{{- end }}
2427
spec:
2528
{{- with .Values.imagePullSecrets }}
2629
imagePullSecrets:

charts/community-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ operator:
4848

4949
securityContext: {}
5050

51+
# Custom labels to be added to the operator pod
52+
podLabels: {}
53+
5154
## Operator's database
5255
database:
5356
name: mongodb-database

0 commit comments

Comments
 (0)