kubernetes/pkg/scheduler/framework/plugins/volumebinding
Yibo Zhuang 380c7f248e scheduler volumebinding: leverage PreFilterResult
This change will leverage the new PreFilterResult
to reduce down the list of eligible nodes for pod
using Bound Local PVs during PreFilter stage so
that only the node(s) which local PV node affinity
matches will be cosnidered in subsequent scheduling
stages.

Today, the NodeAffinity check is done during Filter
which means all nodes will be considered even though
there may be a large number of nodes that are not
eligible due to not matching the pod's bound local
PV(s)' node affinity requirement. Here we can
reduce down the node list in PreFilter to ensure that
during Filter we are only considering the reduced
list and thus can provide a more clear message to
users when node(s) are not available for scheduling
since the list only contains relevant nodes.

If error is encountered (e.g. PV cache read error) or
if node list reduction cannot be done (e.g. pod uses
no local PVs), then we will still proceed to consider
all nodes for the rest of scheduling stages.

Signed-off-by: Yibo Zhuang <yibzhuang@gmail.com>
2022-11-17 21:37:24 -08:00
..
metrics [scheduler] Remove deprecated volumeSchedulingLatency metric 2021-08-23 15:18:16 +03:00
assume_cache.go volumebinding: handle special delete event in AssumeCache 2022-09-02 12:39:40 +02:00
assume_cache_test.go cleanup: remove unnecessary import aliases 2022-03-16 15:43:09 +08:00
binder.go scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00
binder_test.go scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00
fake_binder.go scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00
OWNERS Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00
scorer.go Remove "pkg/controller/volume/scheduling" dependency from "pkg/scheduler/framework/plugins" 2021-08-13 19:08:45 +08:00
scorer_test.go Remove "pkg/controller/volume/scheduling" dependency from "pkg/scheduler/framework/plugins" 2021-08-13 19:08:45 +08:00
test_utils.go pkg/scheduler: Replace deprecated func usage from the k8s.io/utils/pointer pkg 2022-08-16 08:39:18 +03:00
volume_binding.go scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00
volume_binding_test.go scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00