2018-06-04 14:39:53 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
2018-08-03 08:19:12 +00:00
|
|
|
name: {{ .Release.Name }}-{{ .Values.controller.name}}-cluster-role
|
2018-06-04 14:39:53 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- pods
|
|
|
|
- pods/exec
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- update
|
|
|
|
- patch
|
2018-11-29 23:16:59 +00:00
|
|
|
- delete
|
2018-06-04 14:39:53 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- watch
|
|
|
|
- list
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- persistentvolumeclaims
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- delete
|
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- workflows
|
2018-11-29 23:16:59 +00:00
|
|
|
- workflows/finalizers
|
2018-06-04 14:39:53 +00:00
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- update
|
|
|
|
- patch
|
2019-10-22 16:10:13 +00:00
|
|
|
- delete
|
2020-03-07 17:08:28 +00:00
|
|
|
- create
|
2019-10-22 16:10:13 +00:00
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- workflowtemplates
|
|
|
|
- workflowtemplates/finalizers
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
2020-03-07 17:08:28 +00:00
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- cronworkflows
|
|
|
|
- cronworkflows/finalizers
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- update
|
|
|
|
- patch
|
|
|
|
- delete
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- events
|
|
|
|
verbs:
|
|
|
|
- create
|
2019-10-22 16:10:13 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- serviceaccounts
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
2020-04-29 20:36:58 +00:00
|
|
|
{{- if .Values.controller.persistence }}
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- secrets
|
|
|
|
resourceNames:
|
|
|
|
{{- if .Values.controller.persistence.postgresql }}
|
|
|
|
- {{ .Values.controller.persistence.postgresql.userNameSecret.name }}
|
|
|
|
- {{ .Values.controller.persistence.postgresql.passwordSecret.name }}
|
|
|
|
{{- end}}
|
|
|
|
{{- if .Values.controller.persistence.mysql }}
|
|
|
|
- {{ .Values.controller.persistence.mysql.userNameSecret.name }}
|
|
|
|
- {{ .Values.controller.persistence.mysql.passwordSecret.name }}
|
|
|
|
{{- end}}
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
{{- end}}
|
|
|
|
|
2019-10-22 16:10:13 +00:00
|
|
|
|