shoot

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 31 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.

func UpdateShootToBeScheduledOntoSeed

func UpdateShootToBeScheduledOntoSeed(ctx context.Context, shoot *gardencorev1beta1.Shoot, seed *gardencorev1beta1.Seed, executeSchedulingRequest executeSchedulingRequest) error

UpdateShootToBeScheduledOntoSeed sets the seed name where the shoot should be scheduled on. Then it executes the actual update call to the API server. The call is capsuled to allow for easier testing.

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