fix(argo-workflows): Avoid "namespace: null" when singleNamespace is true (#1154)

Signed-off-by: darklore <zodiac.brave.story@gmail.com>
This commit is contained in:
darklore 2022-03-03 23:01:49 +09:00 committed by GitHub
parent 326d87a70c
commit d30d85060e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "argo-workflows.fullname" $ }}-workflow
namespace: {{ $namespace }}
{{- with $namespace }}
namespace: {{ . }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role