Skip to content

Commit

Permalink
Merge pull request #6302 from piotrwrotniak/fixedp
Browse files Browse the repository at this point in the history
Fixes scale down logic.
  • Loading branch information
k8s-ci-robot authored Dec 4, 2023
2 parents cea6c36 + 670e145 commit df6784b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cluster-autoscaler/simulator/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ func (r *RemovalSimulator) SimulateNodeRemoval(
}
klog.V(2).Infof("Simulating node %s removal", nodeName)

if _, found := destinationMap[nodeName]; !found {
klog.V(2).Infof("nodeInfo for %s not found", nodeName)
return nil, &UnremovableNode{Node: nodeInfo.Node(), Reason: UnexpectedError}
}

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)
Expand Down

0 comments on commit df6784b

Please sign in to comment.