summaryrefslogtreecommitdiff
path: root/vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2024-07-11 10:16:54 +0800
committerGitHub <noreply@github.com>2024-07-11 10:16:54 +0800
commit530bedfb151c4d1ac226c14a332fde59c7f2266c (patch)
tree3ec616656344be9013c26929e03347bb12c35c82 /vendor/k8s.io/kubernetes/pkg/scheduler/framework/interface.go
parentMerge pull request #5545 from luomengY/automated-cherry-pick-of-#5467-upstrea... (diff)
parentupdate k8s version to v1.27.15 in CI (diff)
downloadkubeedge-530bedfb151c4d1ac226c14a332fde59c7f2266c.tar.gz
Merge pull request #5699 from Shelley-BaoYue/bump-k8s-v1.27.15
Bump k8s from v1.27.7 to v1.27.15
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.