don't set a namespace if there isn't one provided
Signed-off-by: reinvantveer <reinvantveer@gmail.com>
This commit is contained in:
parent
aa15717099
commit
89a01d5c6e
1 changed files with 3 additions and 4 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue