Skip to content

Commit aa9ec98

Browse files
Romain JACQUETrjacquet31
authored andcommitted
feat: add possibility to use pod annotation in the podspec of
statefulset
1 parent 76e7598 commit aa9ec98

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/mongodb-operated/templates/mongdb-community.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ spec:
1717
statefulSet:
1818
spec:
1919
template:
20+
metadata:
21+
annotations:
22+
{{- with .Values.podAnnotations }}
23+
{{- toYaml . | nindent 12 }}
24+
{{- end }}
2025
spec:
2126
{{- with .Values.imagePullSecrets }}
2227
imagePullSecrets:

charts/mongodb-operated/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ image:
2222
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2323
imagePullSecrets: []
2424

25+
# pod annotations
26+
podAnnotations: {}
27+
2528
# could be used to have one replica per node
2629
# https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
2730
affinity: {}

0 commit comments

Comments
 (0)