Skip to content

Commit

Permalink
update service acccount name template logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Cupacenko committed Nov 22, 2024
1 parent f85343a commit 9cfbe7a
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 9cfbe7a

Please sign in to comment.