re-use controller.workflowNamespaces instead of introducing workflow.namespaces

Signed-off-by: reinvantveer <rein.van.t.veer@geodan.nl>
This commit is contained in:
reinvantveer 2021-07-12 13:57:40 +02:00
parent 1a60f03610
commit 94cb44819e

View file

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