nodedeclaredfeatures

package
v1.35.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of the plugin used in the plugin registry and configurations.
	Name = names.NodeDeclaredFeatures
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, plArgs runtime.Object, fh fwk.Handle, fts feature.Features) (fwk.Plugin, error)

New initializes a new plugin and returns it.

Types

type NodeDeclaredFeatures

type NodeDeclaredFeatures struct {
	// contains filtered or unexported fields
}

NodeDeclaredFeatures is a plugin that checks if a node has all the features required by a pod.

func (*NodeDeclaredFeatures) EventsToRegister

func (pl *NodeDeclaredFeatures) EventsToRegister(_ context.Context) ([]fwk.ClusterEventWithHint, error)

EventsToRegister returns events that may make a pod schedulable. It is required for the EnqueueExtensions interface.

func (*NodeDeclaredFeatures) Filter

func (pl *NodeDeclaredFeatures) Filter(ctx context.Context, cycleState fwk.CycleState, pod *v1.Pod, nodeInfo fwk.NodeInfo) *fwk.Status

Filter checks if the node has the required features.

func (*NodeDeclaredFeatures) Name

func (pl *NodeDeclaredFeatures) Name() string

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

func (*NodeDeclaredFeatures) PreFilter

func (pl *NodeDeclaredFeatures) PreFilter(ctx context.Context, cycleState fwk.CycleState, pod *v1.Pod, nodes []fwk.NodeInfo) (*fwk.PreFilterResult, *fwk.Status)

PreFilter checks if the pod has any feature requirements.

func (*NodeDeclaredFeatures) PreFilterExtensions

func (pl *NodeDeclaredFeatures) PreFilterExtensions() fwk.PreFilterExtensions

PreFilterExtensions returns pre-filter extensions, pod add and remove.

func (*NodeDeclaredFeatures) SignPod

func (pl *NodeDeclaredFeatures) SignPod(ctx context.Context, pod *v1.Pod) ([]fwk.SignFragment, *fwk.Status)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL