kubernetes/pkg/volume
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
..
awsebs Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
azure_file Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
azuredd Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
cephfs Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
configmap Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
csi Revert "Remove references to openstack and cinder" 2022-11-10 18:25:30 +01:00
csimigration Revert "Remove references to openstack and cinder" 2022-11-10 18:25:30 +01:00
downwardapi Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
emptydir Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
fc Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00
flexvolume Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
gcepd Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
git_repo Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
hostpath Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
iscsi Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00
local Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
nfs Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
portworx Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
projected Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
rbd Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00
secret Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
testing Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
util scheduler volumebinding: leverage PreFilterResult 2022-11-17 21:37:24 -08:00
validation various corrections in pkg/volume 2022-09-16 16:42:06 +05:30
vsphere_volume Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
doc.go
metrics_block_linux_test.go unit tests: Skip Windows-unrelated tests on Windows 2022-10-18 12:43:07 +03:00
metrics_block.go add volume type and seperated histogram for volume stat collection 2022-01-19 22:33:37 +08:00
metrics_cached.go various corrections in pkg/volume 2022-09-16 16:42:06 +05:30
metrics_du_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
metrics_du.go set metric_source to du or fsquota accordingly 2022-01-20 10:56:02 +08:00
metrics_errors.go Add helper functions for Block volume Capacity detection 2021-05-20 16:37:12 +02:00
metrics_nil_test.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00
metrics_nil.go Add SupportsMetrics() for Block-mode volumes 2021-05-20 17:10:23 +02:00
metrics_statfs_test.go
metrics_statfs.go add volume type and seperated histogram for volume stat collection 2022-01-19 22:33:37 +08:00
noop_expandable_plugin.go Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
plugins_test.go Refactor ConstructVolumeSpec 2022-11-03 16:55:13 +01:00
plugins.go Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00
volume_linux_test.go volume: use the effective uid 2022-08-02 23:47:58 +02:00
volume_linux.go Fix the wrong log 2021-11-17 09:07:07 +08:00
volume_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
volume.go grammar: replace all occurrences of "the the" with "the" 2022-10-14 09:03:14 +02:00