Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "MultiClusterScheduling"
Name is MultiClusterScheduling plugin name, will use in configuration file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MultiSchedulingPlugin ¶
type MultiSchedulingPlugin struct {
// contains filtered or unexported fields
}
MultiSchedulingPlugin is plugin implemented scheduling framework
func (MultiSchedulingPlugin) Filter ¶
func (m MultiSchedulingPlugin) Filter(pc context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status
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.
Click to show internal directories.
Click to hide internal directories.