2022-08-23 02:43:13 +00:00
|
|
|
{{- if and .Values.clusterInstall .Values.createClusterAggregateRoles }}
|
2020-02-12 18:57:25 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
2021-05-31 16:06:26 +00:00
|
|
|
name: {{ include "argo-rollouts.fullname" . }}-aggregate-to-view
|
2020-02-12 18:57:25 +00:00
|
|
|
labels:
|
|
|
|
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
2021-05-31 16:06:26 +00:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
2020-02-12 18:57:25 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- rollouts
|
2021-01-21 17:48:29 +00:00
|
|
|
- rollouts/scale
|
2020-02-12 18:57:25 +00:00
|
|
|
- experiments
|
|
|
|
- analysistemplates
|
2021-01-21 17:48:29 +00:00
|
|
|
- clusteranalysistemplates
|
2020-02-12 18:57:25 +00:00
|
|
|
- analysisruns
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
2021-05-31 16:06:26 +00:00
|
|
|
name: {{ include "argo-rollouts.fullname" . }}-aggregate-to-edit
|
2020-02-12 18:57:25 +00:00
|
|
|
labels:
|
|
|
|
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
2021-05-31 16:06:26 +00:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
2020-02-12 18:57:25 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- rollouts
|
2021-01-21 17:48:29 +00:00
|
|
|
- rollouts/scale
|
|
|
|
- rollouts/status
|
2020-02-12 18:57:25 +00:00
|
|
|
- experiments
|
|
|
|
- analysistemplates
|
2021-01-21 17:48:29 +00:00
|
|
|
- clusteranalysistemplates
|
2020-02-12 18:57:25 +00:00
|
|
|
- analysisruns
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- delete
|
|
|
|
- deletecollection
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- patch
|
|
|
|
- update
|
|
|
|
- watch
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
2021-05-31 16:06:26 +00:00
|
|
|
name: {{ include "argo-rollouts.fullname" . }}-aggregate-to-admin
|
2020-02-12 18:57:25 +00:00
|
|
|
labels:
|
|
|
|
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
2021-05-31 16:06:26 +00:00
|
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
2020-02-12 18:57:25 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- argoproj.io
|
|
|
|
resources:
|
|
|
|
- rollouts
|
2021-01-21 17:48:29 +00:00
|
|
|
- rollouts/scale
|
|
|
|
- rollouts/status
|
2020-02-12 18:57:25 +00:00
|
|
|
- experiments
|
|
|
|
- analysistemplates
|
2021-01-21 17:48:29 +00:00
|
|
|
- clusteranalysistemplates
|
2020-02-12 18:57:25 +00:00
|
|
|
- analysisruns
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- delete
|
|
|
|
- deletecollection
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- patch
|
|
|
|
- update
|
|
|
|
- watch
|
2020-12-01 23:26:17 +00:00
|
|
|
{{- end }}
|