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.
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.
Click to show internal directories.
Click to hide internal directories.