Skip to content

Commit

Permalink
Merge pull request kubernetes#5325 from x13n/master
Browse files Browse the repository at this point in the history
Log node group min and current size when skipping scale down
  • Loading branch information
k8s-ci-robot authored Nov 24, 2022
2 parents 6a4eaf5 + d9100cd commit bc48327
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ func (n *PreFilteringScaleDownNodeProcessor) GetScaleDownCandidates(ctx *context
klog.Errorf("Error while checking node group size %s: group size not found", nodeGroup.Id())
continue
}
if size <= nodeGroup.MinSize() {
klog.V(1).Infof("Skipping %s - node group min size reached", node.Name)
minSize := nodeGroup.MinSize()
if size <= minSize {
klog.V(1).Infof("Skipping %s - node group min size reached (current: %d, min: %d)", node.Name, size, minSize)
continue
}
result = append(result, node)
Expand Down

0 comments on commit bc48327

Please sign in to comment.