From 5cf477183ec7d6ade5ed63cf07e6cbca7504264c Mon Sep 17 00:00:00 2001 From: Yaroslava Serdiuk Date: Tue, 14 May 2024 11:15:17 +0000 Subject: [PATCH] Add --enable-provisioning-requests flag --- cluster-autoscaler/main.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cluster-autoscaler/main.go b/cluster-autoscaler/main.go index d335b8a237ba..74e0b01a8409 100644 --- a/cluster-autoscaler/main.go +++ b/cluster-autoscaler/main.go @@ -258,9 +258,8 @@ var ( "--max-graceful-termination-sec flag should not be set when this flag is set. Not setting this flag will use unordered evictor by default."+ "Priority evictor reuses the concepts of drain logic in kubelet(https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2712-pod-priority-based-graceful-node-shutdown#migration-from-the-node-graceful-shutdown-feature)."+ "Eg. flag usage: '10000:20,1000:100,0:60'") - // Intentionally disabled for the 1.30 Cluster Autoscaler release, since the ProvisioningRequest API is not stable yet. - // provisioningRequestsEnabled = flag.Bool("enable-provisioning-requests", false, "Whether the clusterautoscaler will be handling the ProvisioningRequest CRs.") - frequentLoopsEnabled = flag.Bool("frequent-loops-enabled", false, "Whether clusterautoscaler triggers new iterations more frequently when it's needed") + provisioningRequestsEnabled = flag.Bool("enable-provisioning-requests", false, "Whether the clusterautoscaler will be handling the ProvisioningRequest CRs.") + frequentLoopsEnabled = flag.Bool("frequent-loops-enabled", false, "Whether clusterautoscaler triggers new iterations more frequently when it's needed") ) func isFlagPassed(name string) bool { @@ -433,8 +432,7 @@ func createAutoscalingOptions() config.AutoscalingOptions { }, DynamicNodeDeleteDelayAfterTaintEnabled: *dynamicNodeDeleteDelayAfterTaintEnabled, BypassedSchedulers: scheduler_util.GetBypassedSchedulersMap(*bypassedSchedulers), - // Intentionally disabled for the 1.30 Cluster Autoscaler release, since the ProvisioningRequest API is not stable yet. - ProvisioningRequestEnabled: false, + ProvisioningRequestEnabled: *provisioningRequestsEnabled, } }