Merge pull request #5325 from x13n/master

Log node group min and current size when skipping scale down
This commit is contained in:
Kubernetes Prow Robot 2022-11-24 02:24:03 -08:00 committed by GitHub
commit bc483274e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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)