fix(argo-workflows): avoid empty namespace in role binding when singleNamespace is true (#2858)
Signed-off-by: Aljoscha Poertner <aljoscha.poertner@hellmann.com>
This commit is contained in:
parent
d89333a6b8
commit
b5fcbe23c8
2 changed files with 6 additions and 4 deletions
|
|
@ -17,7 +17,9 @@ roleRef:
|
|||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ $.Values.workflow.serviceAccount.name }}
|
||||
namespace: {{ $namespace }}
|
||||
{{- with $namespace }}
|
||||
namespace: {{ . }}
|
||||
{{- end }}
|
||||
{{- range $.Values.workflow.rbac.serviceAccounts }}
|
||||
- kind: ServiceAccount
|
||||
name: {{ .name }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue