diff --git a/chart/keel/templates/_helpers.tpl b/chart/keel/templates/_helpers.tpl index 30588884..9df65551 100644 --- a/chart/keel/templates/_helpers.tpl +++ b/chart/keel/templates/_helpers.tpl @@ -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 -}}