seed

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LeaseDurationSeconds defines how long the lease is valid (used for Lease.spec.leaseDurationSeconds).
	LeaseDurationSeconds = 2
	// LeaseResyncSeconds defines how often (in seconds) the seed lease is renewed.
	LeaseResyncSeconds = 2
	// LeaseResyncGracePeriodSeconds is the grace period for how long the lease may not be resynced before the health status
	// is changed to false.
	LeaseResyncGracePeriodSeconds = LeaseResyncSeconds * 10
)

Variables

This section is empty.

Functions

func NewExtensionCheckReconciler added in v1.30.0

func NewExtensionCheckReconciler(clientMap clientmap.ClientMap, l logrus.FieldLogger, nowFunc func() metav1.Time) reconcile.Reconciler

NewExtensionCheckReconciler creates a new reconciler that maintains the ExtensionsReady condition of Seeds according to the observed changes to ControllerInstallations.

func NewLeaseReconciler added in v1.30.0

func NewLeaseReconciler(clientMap clientmap.ClientMap, l logrus.FieldLogger, healthManager healthz.Manager, nowFunc func() metav1.Time) reconcile.Reconciler

NewLeaseReconciler creates a new reconciler that periodically renews the gardenlet's lease.

Types

type Controller

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

Controller controls Seeds.

func NewSeedController

func NewSeedController(
	ctx context.Context,
	clientMap clientmap.ClientMap,
	healthManager healthz.Manager,
	imageVector imagevector.ImageVector,
	componentImageVectors imagevector.ComponentImageVectors,
	identity *gardencorev1beta1.Gardener,
	config *config.GardenletConfiguration,
	recorder record.EventRecorder,
) (*Controller, error)

NewSeedController takes a Kubernetes client for the Garden clusters <k8sGardenClient>, a struct holding information about the acting Gardener, a <seedInformer>, and a <recorder> for event recording. It creates a new Gardener controller.

func (*Controller) CollectMetrics

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

CollectMetrics implements gardenmetrics.ControllerMetricsCollector interface

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int)

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

func (*Controller) RunningWorkers

func (c *Controller) 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