framework

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKubeSchedulerFramework

func NewKubeSchedulerFramework(kubeSchedulerConfig *schedconfig.CompletedConfig, restConfig *restclient.Config, options ...Option) (pkg.Framework, error)

NewKubeSchedulerFramework create a generic simulator for ce, cc, ss simulator which is completely independent of apiserver so no need for kubeconfig nor for apiserver url

Types

type Option

type Option func(*kubeschedulerFramework)

func WithCustomBind

func WithCustomBind(plugins kubeschedulerconfig.PluginSet) Option

func WithCustomEventHandlers

func WithCustomEventHandlers(handlers []func()) Option

func WithCustomPostBind

func WithCustomPostBind(plugins kubeschedulerconfig.PluginSet) Option

func WithCustomPreBind

func WithCustomPreBind(plugins kubeschedulerconfig.PluginSet) Option

func WithExcludeNodes

func WithExcludeNodes(excludeNodes []string) Option

func WithIgnorePodsOnExcludesNode

func WithIgnorePodsOnExcludesNode(with bool) Option

func WithNodeImages

func WithNodeImages(with bool) Option

func WithOutOfTreeRegistry

func WithOutOfTreeRegistry(registry frameworkruntime.Registry) Option

func WithPostBindHook

func WithPostBindHook(postBindHook func(*corev1.Pod) error) Option

func WithSaveTo

func WithSaveTo(to string) Option

func WithScheduledPods

func WithScheduledPods(with bool) Option

func WithTerminatingPods

func WithTerminatingPods(with bool) Option

Jump to

Keyboard shortcuts

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