Documentation ¶
Index ¶
- func NewKubeSchedulerFramework(kubeSchedulerConfig *schedconfig.CompletedConfig, ...) (pkg.Framework, error)
- type Option
- func WithCustomBind(plugins kubeschedulerconfig.PluginSet) Option
- func WithCustomEventHandlers(handlers []func()) Option
- func WithCustomPostBind(plugins kubeschedulerconfig.PluginSet) Option
- func WithCustomPreBind(plugins kubeschedulerconfig.PluginSet) Option
- func WithExcludeNodes(excludeNodes []string) Option
- func WithIgnorePodsOnExcludesNode(with bool) Option
- func WithNodeImages(with bool) Option
- func WithOutOfTreeRegistry(registry frameworkruntime.Registry) Option
- func WithPostBindHook(postBindHook func(*corev1.Pod) error) Option
- func WithSaveTo(to string) Option
- func WithScheduledPods(with bool) Option
- func WithTerminatingPods(with bool) Option
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 WithNodeImages ¶
func WithOutOfTreeRegistry ¶
func WithOutOfTreeRegistry(registry frameworkruntime.Registry) Option
func WithSaveTo ¶
func WithScheduledPods ¶
func WithTerminatingPods ¶
Click to show internal directories.
Click to hide internal directories.