Skip to content

Commit a5502e3

Browse files
committed
Add unit tests
1 parent e02b467 commit a5502e3

File tree

1 file changed

+1
-1
lines changed
  • cluster-autoscaler/core/scaledown/planner

1 file changed

+1
-1
lines changed

cluster-autoscaler/core/scaledown/planner/planner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func (p *Planner) categorizeNodes(podDestinations map[string]bool, scaleDownCand
277277
break
278278
}
279279
if len(removableList)-atomicScaleDownNodesCount >= p.unneededNodesLimit() {
280-
klog.V(4).Infof("%d out of %d nodes skipped in scale down simulation: there are already %d unneeded nodes so no point in looking for more.", len(currentlyUnneededNodeNames)-i, len(currentlyUnneededNodeNames), len(removableList))
280+
klog.V(4).Infof("%d out of %d nodes skipped in scale down simulation: there are already %d unneeded nodes so no point in looking for more. Total atomic scale down nodes: %d", len(currentlyUnneededNodeNames)-i, len(currentlyUnneededNodeNames), len(removableList), atomicScaleDownNodesCount)
281281
break
282282
}
283283
removable, unremovable := p.rs.SimulateNodeRemoval(node, podDestinations, p.latestUpdate, p.context.RemainingPdbTracker)

0 commit comments

Comments
 (0)