Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SuperClusterResourceRegister for super clusters SuperClusterResourceRegister plugin.ResourceRegister // VirtualClusterResourceRegister for virtual clusters VirtualClusterResourceRegister plugin.ResourceRegister )
ResourceRegisters for easier handle of clusters
View Source
var ( // DirtyVirtualClusters for virtual. DirtyVirtualClusters sync.Map // DirtySuperClusters for super clusters. DirtySuperClusters sync.Map )
The dirty sets are used in bootstrap and in handling cluster offline. If a cluster was in dirty set and becomes online again, the cluster state needs to be synchronized with the scheduler cache first during which the scheduler will not serve any scheduling request from that cluster.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler object
func New ¶
func New( config *schedulerconfig.SchedulerConfiguration, vcClient vcclient.Interface, vcInformer vcinformers.VirtualClusterInformer, superClient superclient.Interface, superInformer superinformers.ClusterInformer, metaClusterClient clientset.Interface, metaInformers informers.SharedInformerFactory, stopCh <-chan struct{}, recorder record.EventRecorder, ) (*Scheduler, error)
New creates new Scheduler
Click to show internal directories.
Click to hide internal directories.