scheduler

package
v0.0.0-...-3dc4fa0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "MultiClusterScheduling"

Name is MultiClusterScheduling plugin name, will use in configuration file

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type MultiSchedulingPlugin

type MultiSchedulingPlugin struct {
	// contains filtered or unexported fields
}

MultiSchedulingPlugin is plugin implemented scheduling framework

func (MultiSchedulingPlugin) Filter

Filter check if a pod can run on node

func (MultiSchedulingPlugin) Name

func (m MultiSchedulingPlugin) Name() string

Name returns the plugin name

type Scheduler

type Scheduler struct {
	*scheduler.Scheduler
	// configuration of multicluster
	Config schedulerappconfig.Config
	// stop signal
	StopCh <-chan struct{}
}

Scheduler define the multicluster struct

func NewScheduler

func NewScheduler(ctx context.Context, cc schedulerappconfig.Config, stopCh <-chan struct{}) (*Scheduler, error)

NewScheduler executes the multicluster based on the given configuration. It only return on error or when stopCh is closed.

func (*Scheduler) Run

func (sched *Scheduler) Run(ctx context.Context) error

Run executes the multicluster based on the given configuration. It only return on error or when stopCh is closed.

Jump to

Keyboard shortcuts

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