mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix defaults for serviceAccountName for each statefulset to follow exact from helm docs
helm docs: https://helm.sh/docs/chart_template_guide/functions_and_pipelines/#using-the-default-function
This commit is contained in:
parent
d198fd8af7
commit
666a22b980
|
@ -52,7 +52,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
{{- if .Values.global.createClusterRole }}
|
{{- if .Values.global.createClusterRole }}
|
||||||
serviceAccountName: {{ default .Values.global.serviceAccountName .Values.filer.serviceAccountName }} # for deleting statefulset pods after migration
|
serviceAccountName: {{ .Values.filer.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
|
||||||
{{- end }}
|
{{- end }}
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
{{- if .Values.filer.priorityClassName }}
|
{{- if .Values.filer.priorityClassName }}
|
||||||
|
|
|
@ -56,7 +56,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.global.createClusterRole }}
|
{{- if .Values.global.createClusterRole }}
|
||||||
serviceAccountName: {{ default .Values.global.serviceAccountName .Values.master.serviceAccountName }} # for deleting statefulset pods after migration
|
serviceAccountName: {{ .Values.master.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.master.initContainers }}
|
{{- if .Values.master.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
|
|
|
@ -50,7 +50,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.global.createClusterRole }}
|
{{- if .Values.global.createClusterRole }}
|
||||||
serviceAccountName: {{ default .Values.global.serviceAccountName .Values.volume.serviceAccountName }} # for deleting statefulset pods after migration
|
serviceAccountName: {{ .Values.volume.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
|
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
|
||||||
{{- if $initContainers_exists }}
|
{{- if $initContainers_exists }}
|
||||||
|
|
Loading…
Reference in a new issue