argocd-helm/charts/argo-workflows/templates/controller/workflow-rb.yaml
Rein van 't Veer fa7ba522e0
fix(argo-workflows): Fix typo reported in #876 (#881)
* fix typo. Fixes #876

Signed-off-by: reinvantveer <reinvantveer@gmail.com>

* change notes and version bump

Signed-off-by: reinvantveer <reinvantveer@gmail.com>

* fix typos in role and service account

Signed-off-by: reinvantveer <reinvantveer@gmail.com>

* update change notes

Signed-off-by: reinvantveer <reinvantveer@gmail.com>
2021-08-20 09:24:23 -07:00

20 lines
695 B
YAML

{{- if .Values.workflow.rbac.create -}}
{{- range $namespace := or .Values.singleNamespace false | ternary (list "") (append .Values.controller.workflowNamespaces (coalesce .Values.workflow.namespace .Release.Namespace) | uniq) }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "argo-workflows.fullname" $ }}-workflow
namespace: {{ $namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ template "argo-workflows.fullname" $ }}-workflow
subjects:
- kind: ServiceAccount
name: {{ $.Values.workflow.serviceAccount.name }}
{{- with $namespace }}
namespace: {{ . }}
{{- end }}
{{- end }}
{{- end }}