aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjessebot <jessebot@linux.com>2023-11-26 14:00:15 +0100
committerChris Lu <chrislusf@users.noreply.github.com>2023-11-26 09:26:38 -0800
commitc332832f0b2473610fa52b76280d6dea4c14add7 (patch)
tree4cbf48d45fbcec375cf18df9abd6827ec5075d13
parentaff03c1d0053198dcc86ca64cc11bdff67bf4312 (diff)
downloadseaweedfs-c332832f0b2473610fa52b76280d6dea4c14add7.tar.xz
seaweedfs-c332832f0b2473610fa52b76280d6dea4c14add7.zip
prefer global.serviceAccountName when available for all statefulsets
-rw-r--r--k8s/charts/seaweedfs/templates/filer-statefulset.yaml2
-rw-r--r--k8s/charts/seaweedfs/templates/master-statefulset.yaml2
-rw-r--r--k8s/charts/seaweedfs/templates/volume-statefulset.yaml2
3 files changed, 3 insertions, 3 deletions
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
index 1b316ca60..9aeab5315 100644
--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
@@ -52,7 +52,7 @@ spec:
{{- end }}
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
{{- if .Values.global.createClusterRole }}
- serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration
+ serviceAccountName: {{ default .Values.global.serviceAccountName .Values.filer.serviceAccountName }} # for deleting statefulset pods after migration
{{- end }}
terminationGracePeriodSeconds: 60
{{- if .Values.filer.priorityClassName }}
diff --git a/k8s/charts/seaweedfs/templates/master-statefulset.yaml b/k8s/charts/seaweedfs/templates/master-statefulset.yaml
index a8c4cdaf0..081e9ec2a 100644
--- a/k8s/charts/seaweedfs/templates/master-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/master-statefulset.yaml
@@ -56,7 +56,7 @@ spec:
{{- end }}
enableServiceLinks: false
{{- if .Values.master.serviceAccountName }}
- serviceAccountName: {{ .Values.master.serviceAccountName | quote }}
+ serviceAccountName: {{ default .Values.global.serviceAccountName .Values.master.serviceAccountName }} # for deleting statefulset pods after migration
{{- end }}
{{- if .Values.master.initContainers }}
initContainers:
diff --git a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
index dc89cf9d3..d12319546 100644
--- a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml
@@ -50,7 +50,7 @@ spec:
{{- end }}
enableServiceLinks: false
{{- if .Values.volume.serviceAccountName }}
- serviceAccountName: {{ .Values.volume.serviceAccountName | quote }}
+ serviceAccountName: {{ default .Values.global.serviceAccountName .Values.volume.serviceAccountName }} # for deleting statefulset pods after migration
{{- end }}
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
{{- if $initContainers_exists }}