shoot

package
v1.93.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 65 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "shoot"

ControllerName is the name of this controller.

Variables

View Source
var (
	// DefaultInterval is the default interval for retry operations.
	DefaultInterval = 5 * time.Second
	// DefaultTimeout is the default timeout for waiting for resources to be migrated or deleted.
	DefaultTimeout = 5 * time.Minute
)
View Source
var CalculateControllerInfos = helper.CalculateControllerInfos

CalculateControllerInfos is exposed for testing

Functions

func NewCleaner added in v1.81.0

func NewCleaner(log logr.Logger, seedClient, gardenClient client.Client, seedNamespace string) *cleaner

NewCleaner creates a cleaner with the given clients and logger, for a shoot with the given namespace.

Types

type Reconciler

type Reconciler struct {
	GardenClient                client.Client
	SeedClientSet               kubernetes.Interface
	ShootClientMap              clientmap.ClientMap
	Config                      config.GardenletConfiguration
	Recorder                    record.EventRecorder
	Identity                    *gardencorev1beta1.Gardener
	GardenClusterIdentity       string
	Clock                       clock.Clock
	ShootStateControllerEnabled bool
}

Reconciler implements the main shoot reconciliation logic, i.e., creation, hibernation, migration and deletion.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster cluster.Cluster) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) EventHandler

func (r *Reconciler) EventHandler(log logr.Logger) handler.EventHandler

EventHandler returns an event handler.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile implements the main shoot reconciliation logic, i.e., creation, hibernation, migration and deletion.

Directories

Path Synopsis
Package helper contains helpers for the gardenlet's shoot main controller.
Package helper contains helpers for the gardenlet's shoot main controller.

Jump to

Keyboard shortcuts

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