From ca03e186de920863d59795c33837fb68999d501a Mon Sep 17 00:00:00 2001 From: Sarah Gibson Date: Fri, 13 Sep 2024 16:53:13 +0100 Subject: [PATCH] Don't require serviceAccount.create to generate a name for sa --- gcpFilestoreBackups/templates/_helpers.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcpFilestoreBackups/templates/_helpers.tpl b/gcpFilestoreBackups/templates/_helpers.tpl index 476edea..fd773a3 100644 --- a/gcpFilestoreBackups/templates/_helpers.tpl +++ b/gcpFilestoreBackups/templates/_helpers.tpl @@ -54,9 +54,9 @@ app.kubernetes.io/instance: {{ .Release.Name }} Create the name of the service account to use */}} {{- define "gcpFilestoreBackups.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "gcpFilestoreBackups.fullname" . | lower ) .Values.serviceAccount.name }} -{{- else }} +{{- if .Values.serviceAccount.name }} {{- default "default" .Values.serviceAccount.name }} +{{- else }} +{{- default (include "gcpFilestoreBackups.fullname" . | lower ) .Values.serviceAccount.name }} {{- end }} {{- end }}