externalscheduler

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

Overview

Deprecated: it was renamed to the debuggablescheduler plugin. We'll remove it soon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOptionForOutOfTreePlugin deprecated

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 debuggable 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.

Deprecated: the externalscheduler package was renamed to the debuggablescheduler plugin. We'll remove it soon.

func NewSchedulerCommand deprecated

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

Deprecated: the externalscheduler package was renamed to the debuggablescheduler plugin. We'll remove it soon.

Types

type Option deprecated

type Option func(opt *options)

Deprecated: the externalscheduler package was renamed to the debuggablescheduler plugin. We'll remove it soon.

func WithPlugin

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

WithPlugin creates an Option based on plugin name and factory. Deprecated: the externalscheduler package was renamed to the debuggablescheduler plugin. We'll remove it soon.

func WithPluginExtenders

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

WithPluginExtenders creates an Option based on plugin name and plugin extenders. Deprecated: the externalscheduler package was renamed to the debuggablescheduler plugin. We'll remove it soon.

Jump to

Keyboard shortcuts

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