Skip to content

Commit 2e8e35f

Browse files
add rayjobs to appwrapper rbacs
1 parent 5af348a commit 2e8e35f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

config/rbac/role.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,18 @@ rules:
242242
- get
243243
- patch
244244
- update
245+
- apiGroups:
246+
- ray.io
247+
resources:
248+
- rayjobs
249+
verbs:
250+
- create
251+
- delete
252+
- get
253+
- list
254+
- patch
255+
- update
256+
- watch
245257
- apiGroups:
246258
- rbac.authorization.k8s.io
247259
resources:

pkg/controllers/appwrapper_controller.go

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ package controllers
3131
//+kubebuilder:rbac:groups=scheduling.x-k8s.io,resources=podgroups,verbs=get;list;watch;create;update;patch;delete
3232
//+kubebuilder:rbac:groups=kubeflow.org,resources=pytorchjobs,verbs=get;list;watch;create;update;patch;delete
3333
//+kubebuilder:rbac:groups=ray.io,resources=rayclusters,verbs=get;list;watch;create;update;patch;delete
34+
//+kubebuilder:rbac:groups=ray.io,resources=rayjobs,verbs=get;list;watch;create;update;patch;delete
3435

3536
// permissions needed by Kueue's generic reconciller
3637
// +kubebuilder:rbac:groups=scheduling.k8s.io,resources=priorityclasses,verbs=list;get;watch

0 commit comments

Comments
 (0)