Skip to content

Commit c60101c

Browse files
committed
update AppWrapper RBACs for Kueue 0.10.0
1 parent 1c744d3 commit c60101c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ rules:
1414
- patch
1515
- update
1616
- watch
17+
- apiGroups:
18+
- ""
19+
resources:
20+
- namespaces
21+
verbs:
22+
- get
23+
- list
24+
- watch
1725
- apiGroups:
1826
- ""
1927
resources:

pkg/controllers/appwrapper_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ 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+
// permissions needed by Kueue's base webhook
46+
// +kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;watch
47+
4548
// permission to watch nodes and edit clusterqueues for Autopilot integration
4649
//+kubebuilder:rbac:groups="",resources=nodes,verbs=get;list;watch
4750
//+kubebuilder:rbac:groups=kueue.x-k8s.io,resources=clusterqueues,verbs=get;list;watch;update;patch

0 commit comments

Comments
 (0)