This is an automated email from the ASF dual-hosted git repository.
manirajv06 pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/yunikorn-scheduler-interface.git
The following commit(s) were added to refs/heads/master by this push:
new 6e5f100 [YUNIKORN-3300] Use feasible nodes returned from K8s
PreFilter plugin in core itself (#161)
6e5f100 is described below
commit 6e5f100ad9baee56c34bc3df29a90fd08a3ffa83
Author: Manikandan R <[email protected]>
AuthorDate: Mon Jul 6 20:17:04 2026 +0530
[YUNIKORN-3300] Use feasible nodes returned from K8s PreFilter plugin in
core itself (#161)
Closes: #161
Signed-off-by: Manikandan R <[email protected]>
---
lib/go/api/interface.go | 6 ++++++
scheduler-interface-spec.md | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/lib/go/api/interface.go b/lib/go/api/interface.go
index de21212..814be21 100644
--- a/lib/go/api/interface.go
+++ b/lib/go/api/interface.go
@@ -51,6 +51,12 @@ type ResourceManagerCallback interface {
//Receive Node Update Response
UpdateNode(response *si.NodeResponse) error
+ // PredicatesPreFilter Run a certain set of pre-filter functions to
find the feasible nodes
+ // for the given pod. If all nodes are eligible, empty map along with
nil error would be returned.
+ // Otherwise, map containing only feasible nodes along with nil error
would be returned. Non-nil error
+ // would be returned for all other failure cases.
+ PredicatesPreFilter(args *si.PredicatesArgs) (map[string]struct{},
error)
+
// Run a certain set of predicate functions to determine if a proposed
allocation
// can be allocated onto a node.
Predicates(args *si.PredicatesArgs) error
diff --git a/scheduler-interface-spec.md b/scheduler-interface-spec.md
index c42f4f1..4ac5a28 100644
--- a/scheduler-interface-spec.md
+++ b/scheduler-interface-spec.md
@@ -163,6 +163,12 @@ type ResourceManagerCallback interface {
//Receive Node Update Response
UpdateNode(response *si.NodeResponse) error
+ // PredicatesPreFilter Run a certain set of pre-filter functions to
find the feasible nodes
+ // for the given pod. If all nodes are eligible, empty map along with
nil error would be returned.
+ // Otherwise, map containing only feasible nodes along with nil error
would be returned. Non-nil error
+ // would be returned for all other failure cases.
+ PredicatesPreFilter(args *si.PredicatesArgs) (map[string]struct{},
error)
+
// Run a certain set of predicate functions to determine if a proposed
allocation
// can be allocated onto a node.
Predicates(args *si.PredicatesArgs) error
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]