Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Commit 96c7711

Browse files
feat: Change used ClusterRole (#59)
Signed-off-by: TannerGabriel <[email protected]>
1 parent a258306 commit 96c7711

File tree

1 file changed

+149
-1
lines changed

1 file changed

+149
-1
lines changed

chart/templates/serviceaccount.yaml

Lines changed: 149 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,154 @@ rules:
2626
- "*"
2727
---
2828
apiVersion: rbac.authorization.k8s.io/v1
29+
kind: ClusterRole
30+
metadata:
31+
name: keptn-argo-rollouts
32+
labels:
33+
app.kubernetes.io/component: rollouts-controller
34+
app.kubernetes.io/name: argo-rollouts-clusterrole
35+
app.kubernetes.io/part-of: argo-rollouts
36+
rules:
37+
- apiGroups:
38+
- argoproj.io
39+
resources:
40+
- rollouts
41+
- rollouts/status
42+
- rollouts/finalizers
43+
verbs:
44+
- get
45+
- list
46+
- watch
47+
- update
48+
- patch
49+
- apiGroups:
50+
- argoproj.io
51+
resources:
52+
- analysisruns
53+
- analysisruns/finalizers
54+
- experiments
55+
- experiments/finalizers
56+
verbs:
57+
- create
58+
- get
59+
- list
60+
- watch
61+
- update
62+
- patch
63+
- delete
64+
- apiGroups:
65+
- argoproj.io
66+
resources:
67+
- analysistemplates
68+
- clusteranalysistemplates
69+
verbs:
70+
- get
71+
- list
72+
- watch
73+
# replicaset access needed for managing ReplicaSets
74+
- apiGroups:
75+
- apps
76+
resources:
77+
- replicasets
78+
verbs:
79+
- create
80+
- get
81+
- list
82+
- watch
83+
- update
84+
- patch
85+
- delete
86+
# services patch needed to update selector of canary/stable/active/preview services
87+
- apiGroups:
88+
- ""
89+
resources:
90+
- services
91+
verbs:
92+
- get
93+
- list
94+
- watch
95+
- patch
96+
# secret read access to run analysis templates which reference secrets
97+
- apiGroups:
98+
- ""
99+
resources:
100+
- secrets
101+
verbs:
102+
- get
103+
- list
104+
- watch
105+
# pod list/update needed for updating ephemeral data
106+
- apiGroups:
107+
- ""
108+
resources:
109+
- pods
110+
verbs:
111+
- list
112+
- update
113+
# pods eviction needed for restart
114+
- apiGroups:
115+
- ""
116+
resources:
117+
- pods/eviction
118+
verbs:
119+
- create
120+
# event write needed for emitting events
121+
- apiGroups:
122+
- ""
123+
resources:
124+
- events
125+
verbs:
126+
- create
127+
- update
128+
- patch
129+
# ingress patch needed for managing ingress annotations, create needed for nginx canary
130+
- apiGroups:
131+
- networking.k8s.io
132+
- extensions
133+
resources:
134+
- ingresses
135+
verbs:
136+
- create
137+
- get
138+
- list
139+
- watch
140+
- patch
141+
# job access needed for analysis template job metrics
142+
- apiGroups:
143+
- batch
144+
resources:
145+
- jobs
146+
verbs:
147+
- create
148+
- get
149+
- list
150+
- watch
151+
- update
152+
- patch
153+
- delete
154+
# virtualservice access needed for using the Istio provider
155+
- apiGroups:
156+
- networking.istio.io
157+
resources:
158+
- virtualservices
159+
verbs:
160+
- watch
161+
- get
162+
- update
163+
- list
164+
# trafficsplit access needed for using the SMI provider
165+
- apiGroups:
166+
- split.smi-spec.io
167+
resources:
168+
- trafficsplits
169+
verbs:
170+
- create
171+
- watch
172+
- get
173+
- update
174+
- patch
175+
---
176+
apiVersion: rbac.authorization.k8s.io/v1
29177
kind: ClusterRoleBinding
30178
metadata:
31179
name: keptn-argo-service-rollouts
@@ -35,7 +183,7 @@ metadata:
35183
roleRef:
36184
apiGroup: rbac.authorization.k8s.io
37185
kind: ClusterRole
38-
name: cluster-admin
186+
name: keptn-argo-rollouts
39187
# name: keptn-argo-service-rollouts
40188
subjects:
41189
- kind: ServiceAccount

0 commit comments

Comments
 (0)