Skip to content

Commit

Permalink
RBAC fix to enable slack cluster queue lending limit adjustment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgrove-oss authored and openshift-merge-bot[bot] committed Sep 4, 2024
1 parent 7f00118 commit 8fa9455
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@ rules:
- patch
- update
- watch
- apiGroups:
- kueue.x-k8s.io
resources:
- clusterqueues
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- kueue.x-k8s.io
resources:
Expand Down
3 changes: 2 additions & 1 deletion pkg/controllers/appwrapper_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ package controllers
// +kubebuilder:rbac:groups=kueue.x-k8s.io,resources=resourceflavors,verbs=get;list;watch
// +kubebuilder:rbac:groups=kueue.x-k8s.io,resources=workloadpriorityclasses,verbs=get;list;watch

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

0 comments on commit 8fa9455

Please sign in to comment.