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:
jessebot
2023-11-26 14:55:54 +01:00
committed by Chris Lu
parent d198fd8af7
commit 666a22b980
3 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ spec:
{{- end }}
enableServiceLinks: false
{{- 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 }}
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
{{- if $initContainers_exists }}