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" )
func Fits(pod *v1.Pod, nodeInfo *framework.NodeInfo) bool
Fits actually checks if the pod fits the node.
func New(_ context.Context, _ runtime.Object, _ framework.Handle) (framework.Plugin, error)
New initializes a new plugin and returns it.
NodeName is a plugin that checks if a pod spec node name matches the current node.
type NodeName struct{}
func (pl *NodeName) EventsToRegister() []framework.ClusterEventWithHint
EventsToRegister returns the possible events that may make a Pod failed by this plugin schedulable.
func (pl *NodeName) Filter(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status
Filter invoked at the filter extension point.
func (pl *NodeName) Name() string
Name returns name of the plugin. It is used in logs, etc.