nodeports

package
v0.0.0-...-e2cac0c Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = utils.Name
	// ErrReason when node ports aren't available.
	ErrReason = "node(s) didn't have free ports for the requested pod ports"
)

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type NodePorts

type NodePorts struct{}

NodePorts is a plugin that checks if a node has free ports for the requested pod ports.

func (*NodePorts) CheckConflicts

func (pl *NodePorts) CheckConflicts(_ context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo framework.NodeInfo) *framework.Status

CheckConflicts invoked at the CheckConflicts extension point.

func (*NodePorts) Name

func (pl *NodePorts) 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