kubernetes: k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodename Index | Files

package nodename

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodename"

Index

Package Files

node_name.go

Constants

const (
    // Name is the name of the plugin used in the plugin registry and configurations.
    Name = "NodeName"

    // ErrReason returned when node name doesn't match.
    ErrReason = "node(s) didn't match the requested hostname"
)

func Fits Uses

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

Fits actually checks if the pod fits the node.

func New Uses

func New(_ runtime.Object, _ framework.FrameworkHandle) (framework.Plugin, error)

New initializes a new plugin and returns it.

type NodeName Uses

type NodeName struct{}

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

func (*NodeName) Filter Uses

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 Uses

func (pl *NodeName) Name() string

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

Package nodename imports 4 packages (graph) and is imported by 24 packages. Updated 2020-04-27. Refresh now. Tools for package owners.