Skip to content

Commit

Permalink
Allow setting custom labels on mongo operator pod (#344)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Stoica <[email protected]>
  • Loading branch information
aistoica and Andrei Stoica authored Aug 27, 2024
1 parent 3df6bc8 commit 8718841
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 8718841

Please sign in to comment.