feat(argo): Allow setting up ServiceAccount and RBAC resources for running workflows (#402)
This commit is contained in:
parent
cc52713dbd
commit
cddd6a6048
5 changed files with 67 additions and 1 deletions
25
charts/argo/templates/workflow-role.yaml
Normal file
25
charts/argo/templates/workflow-role.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{{- if .Values.workflow.rbac.create -}}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-workflow
|
||||
{{- if .Values.workflow.namespace }}
|
||||
namespace: {{ .Values.workflow.namespace }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- get
|
||||
- watch
|
||||
- patch
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods/log
|
||||
verbs:
|
||||
- get
|
||||
- watch
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue