2022-08-23 02:43:13 +00:00
|
|
|
{{- if and .Values.dashboard.enabled .Values.clusterInstall .Values.dashboard.createClusterRole }}
|
2021-08-16 15:27:24 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: {{ include "argo-rollouts.fullname" . }}-dashboard
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
|
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- rollouts
|
|
|
|
- rollouts/status
|
|
|
|
- rollouts/finalizers
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
2022-06-01 17:09:51 +00:00
|
|
|
{{- if not .Values.dashboard.readonly }}
|
2021-08-16 15:27:24 +00:00
|
|
|
- update
|
|
|
|
- patch
|
2022-06-01 17:09:51 +00:00
|
|
|
{{- end }}
|
2021-08-16 15:27:24 +00:00
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- analysisruns
|
|
|
|
- analysisruns/finalizers
|
|
|
|
- experiments
|
|
|
|
- experiments/finalizers
|
|
|
|
verbs:
|
2022-06-01 17:09:51 +00:00
|
|
|
{{- if not .Values.dashboard.readonly }}
|
2021-08-16 15:27:24 +00:00
|
|
|
- create
|
2022-06-01 17:09:51 +00:00
|
|
|
{{- end }}
|
2021-08-16 15:27:24 +00:00
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- analysistemplates
|
|
|
|
- clusteranalysistemplates
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
2022-03-31 17:31:43 +00:00
|
|
|
- apiGroups:
|
|
|
|
- apps
|
|
|
|
resources:
|
|
|
|
- deployments
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
2023-01-19 21:14:02 +00:00
|
|
|
{{- if not .Values.dashboard.readonly }}
|
|
|
|
- update
|
|
|
|
- patch
|
|
|
|
{{- end }}
|
2021-08-16 15:27:24 +00:00
|
|
|
- apiGroups:
|
|
|
|
- apps
|
|
|
|
resources:
|
|
|
|
- replicasets
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- pods
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
2023-05-27 14:51:41 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
verbs:
|
|
|
|
- get
|
2023-04-28 07:54:32 +00:00
|
|
|
- apiGroups:
|
|
|
|
- coordination.k8s.io
|
|
|
|
resources:
|
|
|
|
- leases
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- get
|
|
|
|
- update
|
2021-08-16 15:27:24 +00:00
|
|
|
{{- end }}
|