Skip to content

Commit 8fa9455

Browse files
RBAC fix to enable slack cluster queue lending limit adjustment
The codeflare operator needs permission to read and write clusterqueues to enable the AppWrapper controller to adjust the lending limit of a designated slack cluster queue to reflect cordoned nodes.
1 parent 7f00118 commit 8fa9455

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Diff for: config/rbac/role.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ rules:
168168
- patch
169169
- update
170170
- watch
171+
- apiGroups:
172+
- kueue.x-k8s.io
173+
resources:
174+
- clusterqueues
175+
verbs:
176+
- get
177+
- list
178+
- patch
179+
- update
180+
- watch
171181
- apiGroups:
172182
- kueue.x-k8s.io
173183
resources:

Diff for: pkg/controllers/appwrapper_controller.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ package controllers
4242
// +kubebuilder:rbac:groups=kueue.x-k8s.io,resources=resourceflavors,verbs=get;list;watch
4343
// +kubebuilder:rbac:groups=kueue.x-k8s.io,resources=workloadpriorityclasses,verbs=get;list;watch
4444

45-
// permission to watch nodes for Autopilot integration
45+
// permission to watch nodes and edit clusterqueues for Autopilot integration
4646
//+kubebuilder:rbac:groups="",resources=nodes,verbs=get;list;watch
47+
//+kubebuilder:rbac:groups=kueue.x-k8s.io,resources=clusterqueues,verbs=get;list;watch;update;patch

0 commit comments

Comments
 (0)