From f20c2f8c168ba89e715bf71d54f2aa399ca39821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cagatay=20G=C3=BCrt=C3=BCrk?= Date: Sun, 19 Jan 2020 15:36:43 +0100 Subject: [PATCH] Fix the helper --- chart/keel/templates/_helpers.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -}}