scheduler

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.3.0

type Option func(*options)

Option configures the reconciler.

func WithFairSharing added in v0.7.0

func WithFairSharing(fs *config.FairSharing) Option

func WithPodsReadyRequeuingTimestamp added in v0.6.0

func WithPodsReadyRequeuingTimestamp(ts config.RequeuingTimestamp) Option

WithPodsReadyRequeuingTimestamp sets the timestamp that is used for ordering workloads that have been requeued due to the PodsReady condition.

type Scheduler

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

func New

func New(queues *queue.Manager, cache *cache.Cache, cl client.Client, recorder record.EventRecorder, opts ...Option) *Scheduler

func (*Scheduler) NeedLeaderElection added in v0.3.0

func (s *Scheduler) NeedLeaderElection() bool

NeedLeaderElection Implements LeaderElectionRunnable interface to make scheduler run in leader election mode

func (*Scheduler) Start

func (s *Scheduler) Start(ctx context.Context) error

Start implements the Runnable interface to run scheduler as a controller.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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