Documentation ¶
Index ¶
- func AddFlags(fs *pflag.FlagSet)
- func DebugFiltersSetter(val string) (string, error)
- func DebugScoresSetter(val string) (string, error)
- func PluginFactoryProxy(extendHandle ExtendedHandle, factoryFn frameworkruntime.PluginFactory) frameworkruntime.PluginFactory
- type Controller
- type ControllerProvider
- type ControllersMap
- type ExtendedHandle
- type FilterPhaseHook
- type FrameworkExtender
- type FrameworkExtenderFactory
- type Option
- func WithKoordinatorClientSet(koordinatorClientSet koordinatorclientset.Interface) Option
- func WithKoordinatorSharedInformerFactory(informerFactory koordinatorinformers.SharedInformerFactory) Option
- func WithServicesEngine(engine *services.Engine) Option
- func WithSharedListerFactory(adapter SharedListerAdapter) Option
- type PreFilterPhaseHook
- type SchedulingPhaseHook
- type ScorePhaseHook
- type SharedListerAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugFiltersSetter ¶ added in v1.1.0
DebugFiltersSetter updates debugFilterFailure to specified value
func DebugScoresSetter ¶ added in v0.7.0
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 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 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 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
Click to show internal directories.
Click to hide internal directories.