argocd-helm/charts/argo-workflows/templates/controller/workflow-role.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

29 lines
655 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: Role
metadata:
name: {{ template "argo-workflows.fullname" $ }}-workflow
{{- with $namespace }}
namespace: {{ . }}
{{- end }}
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- watch
- patch
- apiGroups:
- ""
resources:
- pods/log
verbs:
- get
- watch
{{- end }}
{{- end }}