From 13ca1a7fc3888a735f6f54cdb4fa8dc639dcccb5 Mon Sep 17 00:00:00 2001 From: Malar Invention Date: Sat, 21 Jun 2025 01:38:23 +0530 Subject: [PATCH] fix: service account condition --- charts/iperf3-monitor/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -}}