diff --git a/gcpFilestoreBackups/templates/_helpers.tpl b/gcpFilestoreBackups/templates/_helpers.tpl index 8cdd124..a4bcfbd 100644 --- a/gcpFilestoreBackups/templates/_helpers.tpl +++ b/gcpFilestoreBackups/templates/_helpers.tpl @@ -55,7 +55,7 @@ Create the name of the service account to use */}} {{- define "gcpFilestoreBackups.serviceAccountName" -}} {{- if .Values.serviceAccount.create }} -{{- default (include "gcpFilestoreBackups.fullname" .) .Values.serviceAccount.name }} +{{- default (include "gcpFilestoreBackups.fullname" . | lower ) .Values.serviceAccount.name }} {{- else }} {{- default "default" .Values.serviceAccount.name }} {{- end }} diff --git a/gcpFilestoreBackups/templates/serviceaccount.yaml b/gcpFilestoreBackups/templates/serviceaccount.yaml index b327ed1..6f68bef 100644 --- a/gcpFilestoreBackups/templates/serviceaccount.yaml +++ b/gcpFilestoreBackups/templates/serviceaccount.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ include "gcpFilestoreBackups.fullname" . }} + name: {{ include "gcpFilestoreBackups.serviceAccountName" . }} {{- with .Values.serviceAccount.annotations }} annotations: {{- . | toYaml | nindent 4 }}