schedulingclass

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "CozystackSchedulingClass"

Variables

This section is empty.

Functions

Types

type Args

type Args struct {
	ClassLabelKey string                       `json:"classLabelKey,omitempty"`
	Classes       map[string]map[string]string `json:"classes,omitempty"`
}

type Effective

type Effective struct {
	RequiredNodeLabels map[string]string
}

func (*Effective) Clone

func (e *Effective) Clone() framework.StateData

type Plugin

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

func (*Plugin) Filter

func (p *Plugin) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status

Filter: enforce your effective constraints (read from CycleState) per node.

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) PreFilter

func (p *Plugin) PreFilter(ctx context.Context, state *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status)

PreFilter: resolve SchedulingClass, compute “effective constraints”, store in CycleState.

func (*Plugin) PreFilterExtensions

func (p *Plugin) PreFilterExtensions() framework.PreFilterExtensions

Jump to

Keyboard shortcuts

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