diff --git a/charts/temporal/templates/_helpers.tpl b/charts/temporal/templates/_helpers.tpl index 609ca6b0..e1a2ffc0 100644 --- a/charts/temporal/templates/_helpers.tpl +++ b/charts/temporal/templates/_helpers.tpl @@ -42,7 +42,7 @@ Create the name of the service account Define the service account as needed */}} {{- define "temporal.serviceAccount" -}} -{{- if .Values.serviceAccount.name -}} +{{- if or .Values.serviceAccount.name .Values.serviceAccount.create -}} serviceAccountName: {{ include "temporal.serviceAccountName" . }} {{- end -}} {{- end -}}