Skip to content

Commit 0013562

Browse files
MenD32k8s-infra-cherrypick-robot
authored andcommitted
docs: added helpful comments
Signed-off-by: MenD32 <[email protected]>
1 parent 3ecc695 commit 0013562

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cluster-autoscaler/simulator/cluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ func (r *RemovalSimulator) findPlaceFor(removedNode string, pods []*apiv1.Pod, n
226226
klog.Errorf("Simulating removal of %s/%s return error; %v", pod.Namespace, pod.Name, err)
227227
}
228228
}
229+
// Remove the node from the snapshot, so that it doesn't interfere with topology spread constraint scheduling.
229230
r.clusterSnapshot.RemoveNodeInfo(removedNode)
230231

231232
newpods := make([]*apiv1.Pod, 0, len(pods))

0 commit comments

Comments
 (0)