prefer global.serviceAccountName when available for all statefulsets

This commit is contained in:
jessebot
2023-11-26 14:00:15 +01:00
committed by Chris Lu
parent aff03c1d00
commit c332832f0b
3 changed files with 3 additions and 3 deletions

View File

@@ -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 }}