kubernetes/pkg/volume/util
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
..
fs unittests: Fixes unit tests for Windows (part 3) 2022-10-21 19:25:48 +03:00
fsquota Remove //lint:ignore pragmas that aren't being used anymore 2021-11-17 08:56:54 +01:00
hostutil Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00
nestedpendingoperations fix nestedPendingOperations mount and umount parallel bug 2022-08-26 09:29:17 +08:00
operationexecutor Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
recyclerclient Generate and format files 2022-07-26 13:14:05 -04:00
subpath Merge pull request #111534 from claudiubelu/unittests-7 2022-10-24 06:30:25 -07:00
types simplify returning boolean expression in /pkg/volume 2021-05-25 02:39:55 +00:00
volumepathhandler various corrections in pkg/volume 2022-09-16 16:42:06 +05:30
atomic_writer.go Generate and format files 2022-07-26 13:14:05 -04:00
atomic_writer_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
attach_limit.go Revert "Remove references to openstack and cinder" 2022-11-10 18:25:30 +01:00
attach_limit_test.go Fix compatibility tests for scheduler 2018-09-05 12:29:00 -04:00
device_util.go Generate and format files 2022-07-26 13:14:05 -04:00
device_util_linux.go various corrections in pkg/volume 2022-09-16 16:42:06 +05:30
device_util_linux_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
device_util_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
doc.go fix golint issue for pkg/volume/util 2018-09-10 21:24:35 +00:00
finalizer.go fix golint issue for pkg/volume/util 2018-09-10 21:24:35 +00:00
io_util.go Generate and format files 2022-07-26 13:14:05 -04:00
metrics.go Merge pull request #111527 from mengjiao-liu/clean-prometheus-in-volume 2022-08-23 16:05:31 -07:00
metrics_test.go change plugin name in fsgroupapplymetrics of csi and flexvolume to 2020-11-04 16:28:28 +08:00
nested_volumes.go Fixes getNestedMountpoints grouping 2022-10-18 15:19:17 +03:00
nested_volumes_test.go Fixes getNestedMountpoints grouping 2022-10-18 15:19:17 +03:00
resize_util.go Fix PVC nil pointer dereference during migration-enabled volume expand 2022-08-17 11:32:22 -07:00
resize_util_test.go Implement controller and kubelet changes for recovery from resize 2021-11-16 11:06:46 -05:00
selinux.go Rename IsRWOP 2022-08-04 10:51:54 +02:00
storageclass.go pv_controller: update tests for multiple storageclasses 2022-10-19 09:33:44 +05:30
util.go scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00
util_test.go scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00