Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ReasonUnschedulable reason in SubscriptionScheduled SubscriptionCondition means that the scheduler // can't schedule the subscription right now, for example due to insufficient resources in the clusters. ReasonUnschedulable = "Unschedulable" // SchedulerError is the reason recorded for events when an error occurs during scheduling a subscription. SchedulerError = "SchedulerError" )
These are reasons for a subscription's transition to a condition.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct { SecureServing *apiserver.SecureServingInfo ClusternetInformerFactory informers.SharedInformerFactory // SchedulingQueue holds subscriptions to be scheduled SchedulingQueue queue.SchedulingQueue // Profiles are the scheduling profiles. Profiles profile.Map // contains filtered or unexported fields }
Scheduler defines configuration for clusternet scheduler
func NewScheduler ¶
func NewScheduler(schedulerOptions *options.SchedulerOptions) (*Scheduler, error)
NewScheduler returns a new Scheduler.
Directories ¶
Path | Synopsis |
---|---|
framework
|
|
internal
|
|
Package profile holds the definition of a scheduling Profile.
|
Package profile holds the definition of a scheduling Profile. |
Click to show internal directories.
Click to hide internal directories.