scheduler

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 43 Imported by: 0

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 workqueue.RateLimitingInterface

	// 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.

func (*Scheduler) Run

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

Run begins watching and scheduling. It starts scheduling and blocked until the context is done.

Directories

Path Synopsis
framework
Package profile holds the definition of a scheduling Profile.
Package profile holds the definition of a scheduling Profile.

Jump to

Keyboard shortcuts

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