Skip to content

Commit

Permalink
update service acccount name template logic (#561)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Cupacenko <alcu@danskebank.lt>
  • Loading branch information
unitmatrix and Aleksandr Cupacenko authored Nov 22, 2024
1 parent f85343a commit 922bb1c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions charts/helm-dashboard/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
Create the name of the service account to use
*/}}
{{- define "helm-dashboard.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "helm-dashboard.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- default (.Values.serviceAccount.create | ternary (include "helm-dashboard.fullname" .) "default") .Values.serviceAccount.name }}
{{- end }}

{{/*
Expand Down

0 comments on commit 922bb1c

Please sign in to comment.