noderesourcesfitplus

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is plugin name
	Name = "NodeResourcesFitPlus"
)

Variables

This section is empty.

Functions

func GetNonzeroRequestForResource

func GetNonzeroRequestForResource(resource v1.ResourceName, requests *v1.ResourceList) int64

GetNonzeroRequestForResource returns the default resource request if none is found or what is provided on the request.

func New

func New(_ context.Context, args runtime.Object, handle fwk.Handle) (fwk.Plugin, error)

Types

type Plugin

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

func (*Plugin) Name

func (s *Plugin) Name() string

func (*Plugin) PreScore

func (s *Plugin) PreScore(ctx context.Context, cycleState fwk.CycleState, pod *v1.Pod, nodes []fwk.NodeInfo) *fwk.Status

func (*Plugin) Score

func (s *Plugin) Score(ctx context.Context, state fwk.CycleState, p *v1.Pod, nodeInfo fwk.NodeInfo) (int64, *fwk.Status)

func (*Plugin) ScoreExtensions

func (p *Plugin) ScoreExtensions() fwk.ScoreExtensions

type ResourceAllocationPriority

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

Jump to

Keyboard shortcuts

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