From 94cb44819ea68a11b465dd2fe1f956352b79766e Mon Sep 17 00:00:00 2001 From: reinvantveer Date: Mon, 12 Jul 2021 13:57:40 +0200 Subject: [PATCH] re-use controller.workflowNamespaces instead of introducing workflow.namespaces Signed-off-by: reinvantveer --- charts/argo-workflows/templates/controller/workflow-role.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/argo-workflows/templates/controller/workflow-role.yaml b/charts/argo-workflows/templates/controller/workflow-role.yaml index c8f04ea2..4dc2e7da 100644 --- a/charts/argo-workflows/templates/controller/workflow-role.yaml +++ b/charts/argo-workflows/templates/controller/workflow-role.yaml @@ -28,8 +28,8 @@ rules: {{- if .Values.workflow.rbac.create -}} - {{- if .Values.workflow.namespaces }} - {{- range .Values.workflow.namespaces}} + {{- if .Values.controller.workflowNamespaces }} + {{- range .Values.controller.workflowNamespaces}} {{ $namespace := . }} {{- include "workflow-role-base" . }} name: {{ template "argo-workflows.fullname" $ }}-workflow