summaryrefslogtreecommitdiff
path: root/vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go
diff options
context:
space:
mode:
authorShelley-BaoYue <baoyue2@huawei.com>2024-07-02 19:50:38 +0800
committerShelley-BaoYue <baoyue2@huawei.com>2024-07-02 19:50:38 +0800
commit5e77de0e60a654fe4f86c8ea3f551d183b451413 (patch)
tree03b8ef8942cf4cf9f588325a83c06c9e5ad54fd2 /vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go
parentLicensing: skip modules with fewer subdirs than mods (diff)
downloadkubeedge-5e77de0e60a654fe4f86c8ea3f551d183b451413.tar.gz
update related vendor for k8s v1.27.15
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go')
-rw-r--r--vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go b/vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go
index 374efa16e..5ad501bbd 100644
--- a/vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go
+++ b/vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go
@@ -48,7 +48,8 @@ type NodeScore struct {
Score int64
}
-// NodeToStatusMap declares map from node name to its status.
+// NodeToStatusMap contains the statuses of the Nodes where the incoming Pod was not schedulable.
+// A PostFilter plugin that uses this map should interpret absent Nodes as UnschedulableAndUnresolvable.
type NodeToStatusMap map[string]*Status
// NodePluginScores is a struct with node name and scores for that node.
@@ -391,6 +392,8 @@ type FilterPlugin interface {
type PostFilterPlugin interface {
Plugin
// PostFilter is called by the scheduling framework.
+ // If there is no entry in the NodeToStatus map, its implicit status is UnschedulableAndUnresolvable.
+ //
// A PostFilter plugin should return one of the following statuses:
// - Unschedulable: the plugin gets executed successfully but the pod cannot be made schedulable.
// - Success: the plugin gets executed successfully and the pod can be made schedulable.