nodename

package
v1.22.4-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Index

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

func Fits added in v1.18.0

func Fits(pod *v1.Pod, nodeInfo *framework.NodeInfo) bool

Fits actually checks if the pod fits the node.

func New

New initializes a new plugin and returns it.

Types

type NodeName

type NodeName struct{}

NodeName is a plugin that checks if a pod spec node name matches the current node.

func (*NodeName) EventsToRegister added in v1.22.0

func (pl *NodeName) EventsToRegister() []framework.ClusterEvent

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, _ *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status

Filter invoked at the filter extension point.

func (*NodeName) Name

func (pl *NodeName) Name() string

Name returns name of the plugin. It is used in logs, etc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL