package nodename

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

Index

Constants

const Name = "NodeName"

Name is the name of the plugin used in the plugin registry and configurations.

Functions

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) Filter

func (pl *NodeName) Filter(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.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.

Source Files

node_name.go

Version
v1.17.14
Published
Nov 11, 2020
Platform
js/wasm
Imports
7 packages
Last checked
4 minutes ago

Tools for package owners.