autoscaler/cluster-autoscaler/simulator/scheduling
Kuba Tużnik 4e283e34ee CA: don't error out in HintingSimulator if a hinted Node is gone
If a hinted Node is no longer in the cluster snapshot (e.g. it was
a fake upcoming Node and the real one appeared).

This was introduced in the recent PredicateChecker->PredicateSnapshot
refactor. Previously, PredicateChecker.CheckPredicates() would return
an error if the hinted Node was gone, and HintingSimulator treated
this error the same as failing predicates - it would move on to the
non-hinting logic. After the refactor, HintingSimulator explicitly
errors out if it can't retrieve the hinted Node from the snapshot,
so the behavior changed.

I checked other CheckPredicates()/SchedulePod() callsites, and this is
the only one when ignoring the missing Node makes sense. For the others,
the Node is added to the snapshot just before the call, so it being
missing should cause an error.
2024-12-12 14:20:51 +01:00
..
hinting_simulator.go CA: don't error out in HintingSimulator if a hinted Node is gone 2024-12-12 14:20:51 +01:00
hinting_simulator_test.go CA: don't error out in HintingSimulator if a hinted Node is gone 2024-12-12 14:20:51 +01:00
hints.go Extract scheduling hints to a dedicated object 2022-10-20 11:44:15 +02:00
hints_test.go Extract scheduling hints to a dedicated object 2022-10-20 11:44:15 +02:00
similar_pods.go Use scheduling package in filterOutSchedulable processor 2022-11-23 12:32:59 +00:00
similar_pods_test.go Use scheduling package in filterOutSchedulable processor 2022-11-23 12:32:59 +00:00