Documentation
¶
Index ¶
- Constants
- func Fits(pod *v1.Pod, nodeInfo fwk.NodeInfo) bool
- func New(_ context.Context, _ runtime.Object, _ fwk.Handle, fts feature.Features) (fwk.Plugin, error)
- type NodeName
- func (pl *NodeName) EventsToRegister(_ context.Context) ([]fwk.ClusterEventWithHint, error)
- func (pl *NodeName) Filter(ctx context.Context, _ fwk.CycleState, pod *v1.Pod, nodeInfo fwk.NodeInfo) *fwk.Status
- func (pl *NodeName) Name() string
- func (pl *NodeName) SignPod(ctx context.Context, pod *v1.Pod) ([]fwk.SignFragment, *fwk.Status)
Constants ¶
View Source
const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = names.NodeName // ErrReason returned when node name doesn't match. ErrReason = "node(s) didn't match the requested node name" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodeName ¶
type NodeName struct {
// contains filtered or unexported fields
}
NodeName is a plugin that checks if a pod spec node name matches the current node.
func (*NodeName) EventsToRegister ¶ added in v1.22.0
EventsToRegister returns the possible events that may make a Pod failed by this plugin schedulable.
func (*NodeName) Filter ¶
func (pl *NodeName) Filter(ctx context.Context, _ fwk.CycleState, pod *v1.Pod, nodeInfo fwk.NodeInfo) *fwk.Status
Filter invoked at the filter extension point.
Click to show internal directories.
Click to hide internal directories.