package nodename
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodename"
Index ¶
- Constants
- func Fits(pod *v1.Pod, nodeInfo *framework.NodeInfo) bool
- func New(_ context.Context, _ runtime.Object, _ framework.Handle, fts feature.Features) (framework.Plugin, error)
- type NodeName
Constants ¶
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" )
Functions ¶
func Fits ¶
Fits actually checks if the pod fits the node.
func New ¶
func New(_ context.Context, _ runtime.Object, _ framework.Handle, fts feature.Features) (framework.Plugin, error)
New initializes a new plugin and returns it.
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 ¶
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 ¶
Name returns name of the plugin. It is used in logs, etc.
Source Files ¶
node_name.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.