frameworkext

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags added in v0.7.0

func AddFlags(fs *pflag.FlagSet)

func DebugFiltersSetter added in v1.1.0

func DebugFiltersSetter(val string) (string, error)

DebugFiltersSetter updates debugFilterFailure to specified value

func DebugScoresSetter added in v0.7.0

func DebugScoresSetter(val string) (string, error)

DebugScoresSetter updates debugTopNScores to specified value

func PluginFactoryProxy

func PluginFactoryProxy(extendHandle ExtendedHandle, factoryFn frameworkruntime.PluginFactory) frameworkruntime.PluginFactory

PluginFactoryProxy is used to proxy the call to the PluginFactory function and pass in the ExtendedHandle for the custom plugin

Types

type Controller added in v1.0.0

type Controller interface {
	Start()
	Name() string
}

type ControllerProvider added in v1.0.0

type ControllerProvider interface {
	NewControllers() ([]Controller, error)
}

type ControllersMap added in v1.0.0

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

func NewControllersMap added in v1.0.0

func NewControllersMap() *ControllersMap

func (*ControllersMap) RegisterControllers added in v1.0.0

func (cm *ControllersMap) RegisterControllers(plugin framework.Plugin)

func (*ControllersMap) Start added in v1.0.0

func (cm *ControllersMap) Start()

type ExtendedHandle

type ExtendedHandle interface {
	framework.Handle
	KoordinatorClientSet() koordinatorclientset.Interface
	KoordinatorSharedInformerFactory() koordinatorinformers.SharedInformerFactory
	SnapshotSharedLister() framework.SharedLister
	Run()
}

ExtendedHandle extends the k8s scheduling framework Handle interface to facilitate plugins to access Koordinator's resources and states.

func NewExtendedHandle

func NewExtendedHandle(options ...Option) ExtendedHandle

type FilterPhaseHook added in v0.6.0

type FilterPhaseHook interface {
	SchedulingPhaseHook
	FilterHook(handle ExtendedHandle, cycleState *framework.CycleState, pod *corev1.Pod, nodeInfo *framework.NodeInfo) (*corev1.Pod, *framework.NodeInfo, bool)
}

type FrameworkExtender added in v0.6.0

type FrameworkExtender interface {
	framework.Framework
}

type FrameworkExtenderFactory added in v0.6.0

type FrameworkExtenderFactory interface {
	New(f framework.Framework) FrameworkExtender
}

func NewFrameworkExtenderFactory added in v0.6.0

func NewFrameworkExtenderFactory(handle ExtendedHandle, hooks ...SchedulingPhaseHook) FrameworkExtenderFactory

type Option added in v0.5.0

type Option func(*extendedHandleOptions)

func WithKoordinatorClientSet added in v0.5.0

func WithKoordinatorClientSet(koordinatorClientSet koordinatorclientset.Interface) Option

func WithKoordinatorSharedInformerFactory added in v0.5.0

func WithKoordinatorSharedInformerFactory(informerFactory koordinatorinformers.SharedInformerFactory) Option

func WithServicesEngine added in v0.7.0

func WithServicesEngine(engine *services.Engine) Option

func WithSharedListerFactory added in v0.7.0

func WithSharedListerFactory(adapter SharedListerAdapter) Option

type PreFilterPhaseHook added in v0.6.0

type PreFilterPhaseHook interface {
	SchedulingPhaseHook
	PreFilterHook(handle ExtendedHandle, state *framework.CycleState, pod *corev1.Pod) (*corev1.Pod, bool)
}

type SchedulingPhaseHook added in v0.6.0

type SchedulingPhaseHook interface {
	Name() string
}

type ScorePhaseHook added in v0.7.0

type ScorePhaseHook interface {
	SchedulingPhaseHook
	ScoreHook(handle ExtendedHandle, cycleState *framework.CycleState, pod *corev1.Pod, nodes []*corev1.Node) (*corev1.Pod, []*corev1.Node, bool)
}

type SharedListerAdapter added in v0.7.0

type SharedListerAdapter func(lister framework.SharedLister) framework.SharedLister

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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