dro now-redundant branch for controller.workflowNamespaces

Signed-off-by: reinvantveer <rein.van.t.veer@geodan.nl>
This commit is contained in:
reinvantveer 2021-07-12 14:16:34 +02:00
parent 424f1fc97f
commit d51e06fc33

View file

@ -17,20 +17,18 @@ subjects:
{{- end }}
{{- if .Values.workflow.rbac.create -}}
{{- if .Values.controller.workflowNamespaces }}
{{- range $namespace := append .Values.controller.workflowNamespaces .Values.workflow.namespace | compact | uniq }}
{{- range $namespace := append .Values.controller.workflowNamespaces .Values.workflow.namespace | compact | uniq }}
{{ include "workflow-rb-base" . }}
{{ include "workflow-rb-base" . }}
name: {{ $.Release.Name }}-workflow
namespace: {{ $namespace }}
{{- include "workflow-rb-roleref" . }}
{{- include "workflow-rb-roleref" . }}
name: {{ template "argo-workflows.fullname" $ }}-workflow
{{- include "workflow-rb-subjects" . }}
{{- include "workflow-rb-subjects" . }}
name: {{ $.Values.workflow.serviceAccount.name }}
namespace: {{ $namespace }}
{{- end }}
{{- end }}
{{- end }}