Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name of the plugin used in the plugin registry and configurations.
Name = "CrossNodePreemption"
)
Variables ¶
This section is empty.
Functions ¶
func FindCandidates ¶
func FindCandidates(ctx context.Context, state *framework.CycleState, pod *v1.Pod, m framework.NodeToStatusMap, fh framework.Handle, nodeLister framework.NodeInfoLister) ([]dp.Candidate, *framework.Status)
FindCandidates calculates a slice of preemption candidates. Each candidate is executable to make the given <pod> schedulable.
Types ¶
type CrossNodePreemption ¶
type CrossNodePreemption struct {
// contains filtered or unexported fields
}
CrossNodePreemption is a PostFilter plugin implements the preemption logic.
func (*CrossNodePreemption) Name ¶
func (pl *CrossNodePreemption) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*CrossNodePreemption) PostFilter ¶
func (pl *CrossNodePreemption) PostFilter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, m framework.NodeToStatusMap) (*framework.PostFilterResult, *framework.Status)
PostFilter invoked at the postFilter extension point.
Click to show internal directories.
Click to hide internal directories.