Fix the helper

pull/471/head
Cagatay Gürtürk 2020-01-19 15:36:43 +01:00
parent 6414cef4f8
commit f20c2f8c16
1 changed files with 3 additions and 3 deletions

View File

@ -7,10 +7,10 @@ Expand the name of the chart.
{{- end -}}
{{- define "serviceAccount.name" -}}
{{- if .Values.rbac.serviceAccount.create -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- if .Values.rbac.serviceAccount.name -}}
{{- .Values.rbac.serviceAccount.name -}}
{{- else -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}