Skip to content

Commit 543be92

Browse files
Merge pull request opendatahub-io#195 from DharmitD/mcad-roles
Add RBAC rules for mcad and ray roles
2 parents 70eab9e + b2a344a commit 543be92

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

config/rbac/role.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ rules:
154154
- seldondeployments
155155
verbs:
156156
- '*'
157+
- apiGroups:
158+
- mcad.ibm.com
159+
resources:
160+
- appwrappers
161+
verbs:
162+
- create
163+
- delete
164+
- get
165+
- list
166+
- patch
157167
- apiGroups:
158168
- monitoring.coreos.com
159169
resources:
@@ -178,6 +188,18 @@ rules:
178188
- patch
179189
- update
180190
- watch
191+
- apiGroups:
192+
- ray.io
193+
resources:
194+
- rayclusters
195+
- rayjobs
196+
- rayservices
197+
verbs:
198+
- create
199+
- delete
200+
- get
201+
- list
202+
- patch
181203
- apiGroups:
182204
- rbac.authorization.k8s.io
183205
resources:
@@ -229,25 +251,3 @@ rules:
229251
- '*'
230252
verbs:
231253
- '*'
232-
- apiGroups:
233-
- mcad.ibm.com
234-
resources:
235-
- appwrappers
236-
verbs:
237-
- create
238-
- get
239-
- list
240-
- patch
241-
- delete
242-
- apiGroups:
243-
- ray.io
244-
resources:
245-
- rayclusters
246-
- rayjobs
247-
- rayservices
248-
verbs:
249-
- create
250-
- get
251-
- list
252-
- patch
253-
- delete

controllers/dspipeline_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ func (r *DSPAReconciler) buildCondition(conditionType string, dspa *dspav1alpha1
142142
//+kubebuilder:rbac:groups=machinelearning.seldon.io,resources=seldondeployments,verbs=*
143143
//+kubebuilder:rbac:groups=tekton.dev,resources=*,verbs=*
144144
//+kubebuilder:rbac:groups=custom.tekton.dev,resources=pipelineloops,verbs=*
145+
//+kubebuilder:rbac:groups=mcad.ibm.com,resources=appwrappers,verbs=create;get;list;patch;delete
146+
//+kubebuilder:rbac:groups=ray.io,resources=rayclusters;rayjobs;rayservices,verbs=create;get;list;patch;delete
145147
//+kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
146148
//+kubebuilder:rbac:groups=authentication.k8s.io,resources=tokenreviews,verbs=create
147149
//+kubebuilder:rbac:groups=image.openshift.io,resources=imagestreamtags,verbs=get

0 commit comments

Comments
 (0)