wrap namespace configuration in with
block to prevent setting it to ""
Signed-off-by: reinvantveer <rein.van.t.veer@geodan.nl>
This commit is contained in:
parent
094cd02860
commit
2bfcf1bc0e
3 changed files with 9 additions and 3 deletions
|
@ -13,6 +13,8 @@ roleRef:
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ $.Values.workflow.serviceAccount.name }}
|
name: {{ $.Values.workflow.serviceAccount.name }}
|
||||||
namespace: {{ $namespace }}
|
{{- with $namespace }}
|
||||||
|
namespace: {{ . }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -5,7 +5,9 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
||||||
namespace: {{ $namespace }}
|
{{- with $namespace }}
|
||||||
|
namespace: {{ . }}
|
||||||
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
|
|
|
@ -7,7 +7,9 @@ metadata:
|
||||||
{{- with $.Values.workflow.serviceAccount.name }}
|
{{- with $.Values.workflow.serviceAccount.name }}
|
||||||
name: {{ . }}
|
name: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
namespace: {{ $namespace }}
|
{{- with $namespace }}
|
||||||
|
namespace: {{ . }}
|
||||||
|
{{- end }}
|
||||||
{{- with $.Values.workflow.serviceAccount.annotations }}
|
{{- with $.Values.workflow.serviceAccount.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
|
Loading…
Reference in a new issue