Skip to content

Commit

Permalink
scheduler: document behavior of Error status returned by Filter
Browse files Browse the repository at this point in the history
This behavior was useful for kubernetes#125488 but
wasn't obvious when reading the documentation.
  • Loading branch information
pohly authored and SoulPancake committed Sep 11, 2024
1 parent 4df2083 commit b7209c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/scheduler/framework/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ type FilterPlugin interface {
// All FilterPlugins should return "Success" to declare that
// the given node fits the pod. If Filter doesn't return "Success",
// it will return "Unschedulable", "UnschedulableAndUnresolvable" or "Error".
//
// "Error" aborts pod scheduling and puts the pod into the backoff queue.
//
// For the node being evaluated, Filter plugins should look at the passed
// nodeInfo reference for this particular node's information (e.g., pods
// considered to be running on the node) instead of looking it up in the
Expand Down

0 comments on commit b7209c7

Please sign in to comment.