Skip to content

Commit e0c8459

Browse files
before 1.33 flags were on main, cherry-pick has to be modified to accomodate this change
1 parent feeb1f7 commit e0c8459

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cluster-autoscaler/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ var (
281281
checkCapacityProvisioningRequestMaxBatchSize = flag.Int("check-capacity-provisioning-request-max-batch-size", 10, "Maximum number of provisioning requests to process in a single batch.")
282282
checkCapacityProvisioningRequestBatchTimebox = flag.Duration("check-capacity-provisioning-request-batch-timebox", 10*time.Second, "Maximum time to process a batch of provisioning requests.")
283283
forceDeleteLongUnregisteredNodes = flag.Bool("force-delete-unregistered-nodes", false, "Whether to enable force deletion of long unregistered nodes, regardless of the min size of the node group the belong to.")
284+
forceDeleteFailedNodes = flag.Bool("force-delete-failed-nodes", false, "Whether to enable force deletion of failed nodes, regardless of the min size of the node group the belong to.")
284285
enableDynamicResourceAllocation = flag.Bool("enable-dynamic-resource-allocation", false, "Whether logic for handling DRA (Dynamic Resource Allocation) objects is enabled.")
285286
)
286287

@@ -461,6 +462,7 @@ func createAutoscalingOptions() config.AutoscalingOptions {
461462
CheckCapacityProvisioningRequestMaxBatchSize: *checkCapacityProvisioningRequestMaxBatchSize,
462463
CheckCapacityProvisioningRequestBatchTimebox: *checkCapacityProvisioningRequestBatchTimebox,
463464
ForceDeleteLongUnregisteredNodes: *forceDeleteLongUnregisteredNodes,
465+
ForceDeleteFailedNodes: *forceDeleteFailedNodes,
464466
DynamicResourceAllocationEnabled: *enableDynamicResourceAllocation,
465467
}
466468
}

0 commit comments

Comments
 (0)