diff --git a/pkg/controllers/disruption/singlenodeconsolidation.go b/pkg/controllers/disruption/singlenodeconsolidation.go index 82e797b48f..a50bd0f5de 100644 --- a/pkg/controllers/disruption/singlenodeconsolidation.go +++ b/pkg/controllers/disruption/singlenodeconsolidation.go @@ -51,6 +51,7 @@ func (s *SingleNodeConsolidation) ComputeCommand(ctx context.Context, disruption // Set a timeout timeout := s.clock.Now().Add(SingleNodeConsolidationTimeoutDuration) constrainedByBudgets := false + // binary search to find the maximum number of NodeClaims we can terminate for i, candidate := range candidates { // If the disruption budget doesn't allow this candidate to be disrupted,