fix when we create serviceAccount value for master and volume statefulsets to be when global.createClusterRole is set to true

This commit is contained in:
jessebot authored and Chris Lu committed 2023-11-26 09:26:38 -08:00
1 parent 0709361ed2
commit d198fd8af7
2 files changed
+2 -2

No files matched your search

@@ -55,7 +55,7 @@ spec:
priorityClassName: {{ .Values.master.priorityClassName | quote }}
{{- end }}
enableServiceLinks: false
{{- if .Values.master.serviceAccountName }}
{{- if .Values.global.createClusterRole }}
serviceAccountName: {{ default .Values.global.serviceAccountName .Values.master.serviceAccountName }} # for deleting statefulset pods after migration
{{- end }}
{{- if .Values.master.initContainers }}
@@ -49,7 +49,7 @@ spec:
priorityClassName: {{ .Values.volume.priorityClassName | quote }}
{{- end }}
enableServiceLinks: false
{{- if .Values.volume.serviceAccountName }}
{{- if .Values.global.createClusterRole }}
serviceAccountName: {{ default .Values.global.serviceAccountName .Values.volume.serviceAccountName }} # for deleting statefulset pods after migration
{{- end }}
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}