Skip to content

Commit 872baa7

Browse files
committed
chore(seaweedfs): add podAnnotations config
1 parent 286306e commit 872baa7

4 files changed

Lines changed: 27 additions & 0 deletions

File tree

addons/seaweedfs/3/chart/seaweedfs/templates/filer/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ spec:
2525
metadata:
2626
labels: {{- include "common.labels.standard" . | nindent 8 }}
2727
app.kubernetes.io/component: filer
28+
{{- if .Values.filer.podAnnotations }}
29+
annotations:
30+
{{- if .Values.filer.podAnnotations }}
31+
{{- include "common.tplvalues.render" (dict "value" .Values.filer.podAnnotations "context" $) | nindent 8 }}
32+
{{- end }}
33+
{{- end }}
2834
spec:
2935
{{- if .Values.filer.affinity }}
3036
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.filer.affinity "context" $) | nindent 8 }}

addons/seaweedfs/3/chart/seaweedfs/templates/master/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ spec:
2525
metadata:
2626
labels: {{- include "common.labels.standard" . | nindent 8 }}
2727
app.kubernetes.io/component: master
28+
{{- if .Values.master.podAnnotations }}
29+
annotations:
30+
{{- if .Values.master.podAnnotations }}
31+
{{- include "common.tplvalues.render" (dict "value" .Values.master.podAnnotations "context" $) | nindent 8 }}
32+
{{- end }}
33+
{{- end }}
2834
spec:
2935
{{- if .Values.master.affinity }}
3036
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.master.affinity "context" $) | nindent 8 }}

addons/seaweedfs/3/chart/seaweedfs/templates/volume/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ spec:
2525
metadata:
2626
labels: {{- include "common.labels.standard" . | nindent 8 }}
2727
app.kubernetes.io/component: volume
28+
{{- if .Values.volume.podAnnotations }}
29+
annotations:
30+
{{- if .Values.volume.podAnnotations }}
31+
{{- include "common.tplvalues.render" (dict "value" .Values.volume.podAnnotations "context" $) | nindent 8 }}
32+
{{- end }}
33+
{{- end }}
2834
spec:
2935
{{- if .Values.volume.affinity }}
3036
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.volume.affinity "context" $) | nindent 8 }}

addons/seaweedfs/3/chart/seaweedfs/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ master:
158158
## - 10.10.10.0/24
159159
##
160160
loadBalancerSourceRanges: []
161+
## @param master.podAnnotations Annotations for pods in StatefulSet
162+
##
163+
podAnnotations: {}
161164
affinity: {}
162165
podAffinityPreset: ""
163166
## @param ingest.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `ingest.affinity` is set. Allowed values: `soft` or `hard`
@@ -246,6 +249,9 @@ filer:
246249
## - 10.10.10.0/24
247250
##
248251
loadBalancerSourceRanges: []
252+
## @param filer.podAnnotations Annotations for pods in StatefulSet
253+
##
254+
podAnnotations: {}
249255
affinity: {}
250256
podAffinityPreset: ""
251257
## @param ingest.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `ingest.affinity` is set. Allowed values: `soft` or `hard`
@@ -328,6 +334,9 @@ volume:
328334
## - 10.10.10.0/24
329335
##
330336
loadBalancerSourceRanges: []
337+
## @param volume.podAnnotations Annotations for pods in StatefulSet
338+
##
339+
podAnnotations: {}
331340
affinity: {}
332341
podAffinityPreset: ""
333342
## @param ingest.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `ingest.affinity` is set. Allowed values: `soft` or `hard`

0 commit comments

Comments
 (0)