Documentation ¶
Index ¶
- Constants
- func Fits(pod *v1.Pod, nodeInfo *framework.NodeInfo) bool
- func New(_ runtime.Object, _ framework.Handle) (framework.Plugin, error)
- type NodePorts
- func (pl *NodePorts) EventsToRegister() []framework.ClusterEventWithHint
- func (pl *NodePorts) Filter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (pl *NodePorts) Name() string
- func (pl *NodePorts) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status)
- func (pl *NodePorts) PreFilterExtensions() framework.PreFilterExtensions
Constants ¶
View Source
const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = names.NodePorts // 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 ¶
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) EventsToRegister ¶ added in v1.22.0
func (pl *NodePorts) EventsToRegister() []framework.ClusterEventWithHint
EventsToRegister returns the possible events that may make a Pod failed by this plugin schedulable.
func (*NodePorts) Filter ¶
func (pl *NodePorts) Filter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status
Filter invoked at the filter extension point.
func (*NodePorts) PreFilter ¶ added in v1.18.0
func (pl *NodePorts) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status)
PreFilter invoked at the prefilter extension point.
func (*NodePorts) PreFilterExtensions ¶ added in v1.18.0
func (pl *NodePorts) PreFilterExtensions() framework.PreFilterExtensions
PreFilterExtensions do not exist for this plugin.
Click to show internal directories.
Click to hide internal directories.