extender

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultExtenderTimeout defines the default extender timeout in second.
	DefaultExtenderTimeout = 5 * time.Second
)
View Source
const ResultStoreKey = "ExtenderResultStoreKey"

Variables

This section is empty.

Functions

func OverrideExtendersCfgToSimulator

func OverrideExtendersCfgToSimulator(cfg *configv1.KubeSchedulerConfiguration, simulatorPort int)

OverrideExtendersCfgToSimulator rewrites the scheduler config so that the extenders requests go through the simulator server.

Types

type Extender

Extender provides methods to call the actual extender's endpoint set by user.

type Service

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

Service manages Extenders and the result.

func New

func New(client clientset.Interface, extenderCfgs []configv1.Extender, storeReflector storereflector.Reflector) (*Service, error)

New initializes Service. `extenderCfgs` expect to receive an untouched config file(set by user).

func (*Service) Bind

Bind returns the result of the specified bind extender and store it.

func (*Service) Filter

Filter returns the result of the specified filter extender and store it.

func (*Service) Preempt

Preempt returns the result of the specified preempt extender and store it.

func (*Service) Prioritize

func (s *Service) Prioritize(id int, args extenderv1.ExtenderArgs) (*extenderv1.HostPriorityList, error)

Prioritize returns the result of the specified prioritize extender and store it.

Directories

Path Synopsis
Package mock_extender is a generated GoMock package.
Package mock_extender is a generated GoMock package.

Jump to

Keyboard shortcuts

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