Skip to content

Commit b0e9173

Browse files
fix typo in utilization
1 parent 4efe655 commit b0e9173

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cluster-autoscaler/core/scale_down.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ func (sd *ScaleDown) UpdateUnneededNodes(
465465
klog.V(4).Infof("Node %s - %s utilization %f", node.Name, utilInfo.ResourceName, utilInfo.Utilization)
466466
utilizationMap[node.Name] = utilInfo
467467

468-
if !sd.isNodeBelowUtilzationThreshold(node, utilInfo) {
468+
if !sd.isNodeBelowUtilizationThreshold(node, utilInfo) {
469469
klog.V(4).Infof("Node %s is not suitable for removal - %s utilization too big (%f)", node.Name, utilInfo.ResourceName, utilInfo.Utilization)
470470
sd.addUnremovableNodeReason(node, simulator.NotUnderutilized)
471471
continue
@@ -600,8 +600,8 @@ func (sd *ScaleDown) UpdateUnneededNodes(
600600
return nil
601601
}
602602

603-
// isNodeBelowUtilzationThreshold determintes if a given node utilization is blow threshold.
604-
func (sd *ScaleDown) isNodeBelowUtilzationThreshold(node *apiv1.Node, utilInfo simulator.UtilizationInfo) bool {
603+
// isNodeBelowUtilizationThreshold determines if a given node utilization is below threshold.
604+
func (sd *ScaleDown) isNodeBelowUtilizationThreshold(node *apiv1.Node, utilInfo simulator.UtilizationInfo) bool {
605605
if gpu.NodeHasGpu(sd.context.CloudProvider.GPULabel(), node) {
606606
if utilInfo.Utilization >= sd.context.ScaleDownGpuUtilizationThreshold {
607607
return false

0 commit comments

Comments
 (0)