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

@ -2,7 +2,7 @@ apiVersion: v2
name: argo-workflows name: argo-workflows
description: A Helm chart for Argo Workflows description: A Helm chart for Argo Workflows
type: application type: application
version: 0.11.0 version: 0.11.1
appVersion: v3.2.7 appVersion: v3.2.7
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
@ -15,4 +15,4 @@ maintainers:
- name: benjaminws - name: benjaminws
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- "[Added]: Workflow Controller Volumes and VolumeMounts parameters" - "[Fixed]: Avoid "namespace: null" when singleNamespace is true"

View file

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