From 89a01d5c6e29683652c7d29e19b215ecc1c40b71 Mon Sep 17 00:00:00 2001 From: reinvantveer Date: Wed, 7 Jul 2021 19:12:10 +0200 Subject: [PATCH] don't set a namespace if there isn't one provided Signed-off-by: reinvantveer --- .../argo-workflows/templates/controller/workflow-sa.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/charts/argo-workflows/templates/controller/workflow-sa.yaml b/charts/argo-workflows/templates/controller/workflow-sa.yaml index 12c6ae3e..4bca33e0 100644 --- a/charts/argo-workflows/templates/controller/workflow-sa.yaml +++ b/charts/argo-workflows/templates/controller/workflow-sa.yaml @@ -38,12 +38,11 @@ metadata: {{- else }} - {{- /* - The namespace will default to "argo" if neither "namespaces" nor "namespace" is set - */}} {{ include "sa-base" . }} name: {{ $.Values.workflow.serviceAccount.name }} - namespace: {{ .Values.workflow.namespace | default "argo" }} + {{- if .Values.workflow.namespace }} + namespace: {{ .Values.workflow.namespace }} + {{- end }} annotations: {{- toYaml $.Values.workflow.serviceAccount.annotations | nindent 4 }} {{- end }}