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:
Aljoscha Pörtner 2024-08-02 12:42:36 +02:00 committed by GitHub
parent d89333a6b8
commit b5fcbe23c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

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