shoot

package
v1.26.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const MsgUnschedulable = "Failed to schedule shoot"

MsgUnschedulable is the Message for the Event on a Shoot that the Scheduler creates in case it cannot schedule the Shoot to any Seed

Variables

This section is empty.

Functions

func NewReconciler added in v1.19.0

func NewReconciler(
	l logrus.FieldLogger,
	config *config.SchedulerConfiguration,
	gardenClient kubernetes.Interface,
	recorder record.EventRecorder,
) reconcile.Reconciler

NewReconciler creates a new instance of a reconciler which schedules Shoots.

Types

type SchedulerController

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

SchedulerController controls Seeds.

func NewGardenerScheduler

func NewGardenerScheduler(
	ctx context.Context,
	clientMap clientmap.ClientMap,
	config *config.SchedulerConfiguration,
	recorder record.EventRecorder,
) (
	*SchedulerController,
	error,
)

NewGardenerScheduler creates a new scheduler controller.

func (*SchedulerController) CollectMetrics

func (c *SchedulerController) CollectMetrics(ch chan<- prometheus.Metric)

CollectMetrics implements gardenmetrics.ControllerMetricsCollector interface

func (*SchedulerController) Run

func (c *SchedulerController) Run(ctx context.Context)

Run runs the SchedulerController until the given stop channel can be read from.

func (*SchedulerController) RunningWorkers

func (c *SchedulerController) RunningWorkers() int

RunningWorkers returns the number of running workers.

Jump to

Keyboard shortcuts

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