From 3a2933a24ccd51c5d9ca8a1529dca91004970e37 Mon Sep 17 00:00:00 2001 From: MenD32 <amit.mendelevitch@gmail.com> Date: Tue, 27 May 2025 21:31:47 +0300 Subject: [PATCH] docs: added helpful comments Signed-off-by: MenD32 <amit.mendelevitch@gmail.com> --- cluster-autoscaler/simulator/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster-autoscaler/simulator/cluster.go b/cluster-autoscaler/simulator/cluster.go index 690e198280..17eae04c80 100644 --- a/cluster-autoscaler/simulator/cluster.go +++ b/cluster-autoscaler/simulator/cluster.go @@ -226,6 +226,7 @@ func (r *RemovalSimulator) findPlaceFor(removedNode string, pods []*apiv1.Pod, n klog.Errorf("Simulating removal of %s/%s return error; %v", pod.Namespace, pod.Name, err) } } + // Remove the node from the snapshot, so that it doesn't interfere with topology spread constraint scheduling. r.clusterSnapshot.RemoveNodeInfo(removedNode) newpods := make([]*apiv1.Pod, 0, len(pods)) -- GitLab