diff --git a/charts/iperf3-monitor/templates/_helpers.tpl b/charts/iperf3-monitor/templates/_helpers.tpl index 648b717..e966c0f 100644 --- a/charts/iperf3-monitor/templates/_helpers.tpl +++ b/charts/iperf3-monitor/templates/_helpers.tpl @@ -47,9 +47,9 @@ app.kubernetes.io/instance: {{ .Release.Name }} Create the name of the service account to use */}} {{- define "iperf3-monitor.serviceAccountName" -}} -{{- if .Values.serviceAccount.create -}} +{{- if .Values.rbac.create -}} {{- default (include "iperf3-monitor.fullname" .) .Values.serviceAccount.name -}} {{- else -}} {{- default "default" .Values.serviceAccount.name -}} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}}