don't set a namespace if there isn't one provided

Signed-off-by: reinvantveer <reinvantveer@gmail.com>
This commit is contained in:
reinvantveer 2021-07-07 19:12:10 +02:00
parent aa15717099
commit 89a01d5c6e

View file

@ -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 }}