Skip to content

Commit d807895

Browse files
committed
Drop clusterqueues create and delete permissions
1 parent 9f6a35b commit d807895

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

config/default/config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ data:
66
config.yaml: |
77
appwrapper:
88
enableKueueIntegrations: true
9+
defaultQueueName: default-queue
10+
slackQueueName: slack-cluster-queue
11+
autopilot:
12+
injectAntiAffinities: true
13+
migrateImpactedWorkloads: true
14+
resourceUnhealthyConfig:
15+
nvidia.com/gpu:
16+
autopilot.ibm.com/gpuhealth: ERR
17+
memory:
18+
autopilot.ibm.com/memory: ERR
919
controllerManager:
1020
health:
1121
bindAddress: ":8081"

config/rbac/role.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ rules:
115115
resources:
116116
- clusterqueues
117117
verbs:
118-
- create
119-
- delete
120118
- get
121119
- list
122120
- patch

internal/controller/appwrapper/node_health_monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var (
5050

5151
// permission to watch nodes
5252
//+kubebuilder:rbac:groups="",resources=nodes,verbs=get;list;watch
53-
//+kubebuilder:rbac:groups=kueue.x-k8s.io,resources=clusterqueues,verbs=get;list;watch;create;update;patch;delete
53+
//+kubebuilder:rbac:groups=kueue.x-k8s.io,resources=clusterqueues,verbs=get;list;watch;update;patch
5454

5555
func (r *NodeHealthMonitor) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
5656
node := &v1.Node{}

0 commit comments

Comments
 (0)