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