Skip to content

Commit

Permalink
Merge pull request #7670 from ialidzhikov/nit/logging
Browse files Browse the repository at this point in the history
logging: Start from a capital letter
  • Loading branch information
k8s-ci-robot authored Jan 9, 2025
2 parents 221148d + b676bb9 commit 5cd491a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster-autoscaler/simulator/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (r *RemovalSimulator) SimulateNodeRemoval(

podsToRemove, daemonSetPods, blockingPod, err := GetPodsToMove(nodeInfo, r.deleteOptions, r.drainabilityRules, r.listers, remainingPdbTracker, timestamp)
if err != nil {
klog.V(2).Infof("node %s cannot be removed: %v", nodeName, err)
klog.V(2).Infof("Node %s cannot be removed: %v", nodeName, err)
if blockingPod != nil {
return nil, &UnremovableNode{Node: nodeInfo.Node(), Reason: BlockedByPod, BlockingPod: blockingPod}
}
Expand All @@ -167,10 +167,10 @@ func (r *RemovalSimulator) SimulateNodeRemoval(
return r.findPlaceFor(nodeName, podsToRemove, destinationMap, timestamp)
})
if err != nil {
klog.V(2).Infof("node %s is not suitable for removal: %v", nodeName, err)
klog.V(2).Infof("Node %s is not suitable for removal: %v", nodeName, err)
return nil, &UnremovableNode{Node: nodeInfo.Node(), Reason: NoPlaceToMovePods}
}
klog.V(2).Infof("node %s may be removed", nodeName)
klog.V(2).Infof("Node %s may be removed", nodeName)
return &NodeToBeRemoved{
Node: nodeInfo.Node(),
PodsToReschedule: podsToRemove,
Expand Down

0 comments on commit 5cd491a

Please sign in to comment.