Skip to content

Commit 23c072b

Browse files
committed
Update autocaler RBAC to accomodate machinepools support added upstream
This is needed to let the autoscaler to operate openshift/kubernetes-autoscaler#256 (comment) kubernetes/autoscaler#4676
1 parent 8ccb78b commit 23c072b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

control-plane-operator/controllers/hostedcontrolplane/autoscaler/reconcile.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ func ReconcileAutoscalerRole(role *rbacv1.Role, owner config.OwnerRef) error {
204204
"machines",
205205
"machinesets",
206206
"machinesets/scale",
207+
"machinepools",
208+
"machinepools/scale",
207209
},
208210
Verbs: []string{"*"},
209211
},

hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,6 +2451,8 @@ func reconcileControlPlaneOperatorRole(role *rbacv1.Role) error {
24512451
"machines",
24522452
"machinesets",
24532453
"machinesets/scale",
2454+
"machinepools",
2455+
"machinepools/scale",
24542456
},
24552457
Verbs: []string{"*"},
24562458
},

0 commit comments

Comments
 (0)