29 lines
655 B
YAML
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 }}
|