Skip to content

Commit

Permalink
Allow setting custom labels on mongo community operator (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirakladp authored Jan 10, 2025
1 parent 9496ee9 commit 6f5b06e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/community-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
metadata:
labels:
name: {{ .Values.operator.name }}
{{- with .Values.operator.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
3 changes: 3 additions & 0 deletions charts/community-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ operator:

securityContext: {}

# Custom labels to be added to the operator pod
podLabels: {}

## Operator's database
database:
name: mongodb-database
Expand Down

0 comments on commit 6f5b06e

Please sign in to comment.