Skip to content

Commit f696d26

Browse files
authored
Fix apigroup for raycluster in RBAC-generation annotation (#167)
1 parent 4dd6b07 commit f696d26

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

config/rbac/role.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,6 @@ rules:
9090
- patch
9191
- update
9292
- watch
93-
- apiGroups:
94-
- cluster.ray.io
95-
resources:
96-
- rayclusters
97-
verbs:
98-
- create
99-
- delete
100-
- get
101-
- list
102-
- patch
103-
- update
104-
- watch
10593
- apiGroups:
10694
- kubeflow.org
10795
resources:
@@ -156,6 +144,18 @@ rules:
156144
- get
157145
- patch
158146
- update
147+
- apiGroups:
148+
- ray.io
149+
resources:
150+
- rayclusters
151+
verbs:
152+
- create
153+
- delete
154+
- get
155+
- list
156+
- patch
157+
- update
158+
- watch
159159
- apiGroups:
160160
- scheduling.k8s.io
161161
resources:

internal/controller/appwrapper/appwrapper_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type componentStatusSummary struct {
8484
//+kubebuilder:rbac:groups=scheduling.sigs.k8s.io,resources=podgroups,verbs=get;list;watch;create;update;patch;delete
8585
//+kubebuilder:rbac:groups=scheduling.x-k8s.io,resources=podgroups,verbs=get;list;watch;create;update;patch;delete
8686
//+kubebuilder:rbac:groups=kubeflow.org,resources=pytorchjobs,verbs=get;list;watch;create;update;patch;delete
87-
//+kubebuilder:rbac:groups=cluster.ray.io,resources=rayclusters,verbs=get;list;watch;create;update;patch;delete
87+
//+kubebuilder:rbac:groups=ray.io,resources=rayclusters,verbs=get;list;watch;create;update;patch;delete
8888

8989
// Reconcile reconciles an appwrapper
9090
// Please see [aw-states] for documentation of this method.

0 commit comments

Comments
 (0)