Skip to content

Commit

Permalink
Allow setting custom labels on mongo operator pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Stoica committed Aug 25, 2024
1 parent f03b5c0 commit 3a5f70b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/atlas-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
{{- end }}
labels:
{{- include "mongodb-atlas-operator.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
3 changes: 2 additions & 1 deletion charts/atlas-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

# podAnnotations can be defined to be set for the Operator Pod.
# podAnnotations and podLabels can be defined to be set for the Operator Pod.
podLabels: {}
podAnnotations: {}

# podSecurityContext sets the SecurityContext for the Operator Pod.
Expand Down

0 comments on commit 3a5f70b

Please sign in to comment.