debuggablescheduler

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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOptionForOutOfTreePlugin

func CreateOptionForOutOfTreePlugin(outOfTreePluginRegistry runtime.Registry, pluginExtender map[string]plugin.PluginExtenderInitializer) ([]app.Option, func(), error)

CreateOptionForOutOfTreePlugin creates the option which can be help with running the external scheduler. It does: - create the wrapped plugin registries and return the registries as app.Option - initialize and start the store reflector. - the scheduler config conversion

  • reads the scheduling config passed from users (or use the default config)
  • converts it for enabling wrapped plugins
  • makes the defaulting func of the KubeSchedulerConfig always returning the converted one. We can let the scheduler use the converted configuration under any circumstances because the scheduler will always use this defaulting func to load the configuration.

func NewSchedulerCommand

func NewSchedulerCommand(opts ...Option) (*cobra.Command, func(), error)

Types

type Option

type Option func(opt *options)

func WithPlugin

func WithPlugin(pluginName string, factory runtime.PluginFactory) Option

WithPlugin creates an Option based on plugin name and factory.

func WithPluginExtenders

func WithPluginExtenders(pluginName string, e plugin.PluginExtenderInitializer) Option

WithPluginExtenders creates an Option based on plugin name and plugin extenders.

Jump to

Keyboard shortcuts

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