Skip to content

Commit

Permalink
Merge pull request #19 from sgibson91/serviceaccount
Browse files Browse the repository at this point in the history
Don't require serviceAccount.create to generate a name for sa
  • Loading branch information
sgibson91 authored Sep 13, 2024
2 parents 672b1d7 + ca03e18 commit e761453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcpFilestoreBackups/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit e761453

Please sign in to comment.