autoscaler/cluster-autoscaler/utils/scheduler
Kuba Tużnik eb26816ce9 CA: refactor utils related to NodeInfos
simulator.BuildNodeInfoForNode, core_utils.GetNodeInfoFromTemplate,
and scheduler_utils.DeepCopyTemplateNode all had very similar logic
for sanitizing and copying NodeInfos. They're all consolidated to
one file in simulator, sharing common logic.

DeepCopyNodeInfo is changed to be a framework.NodeInfo method.

MixedTemplateNodeInfoProvider now correctly uses ClusterSnapshot to
correlate Nodes to scheduled pods, instead of using a live Pod lister.
This means that the snapshot now has to be properly initialized in a
bunch of tests.
2024-11-27 12:51:30 +01:00
..
scheduler.go CA: refactor utils related to NodeInfos 2024-11-27 12:51:30 +01:00
scheduler_test.go DRA: migrate all of CA to use the new internal NodeInfo/PodInfo 2024-11-05 16:43:43 +01:00