state

package
v1.75.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "shoot-state"

ControllerName is the name of this controller.

Variables

View Source
var (
	// RequeueWhenShootIsNotReadyForBackup is the duration for the requeueing when a shoot is not yet ready for a backup
	// of its state.
	RequeueWhenShootIsNotReadyForBackup = 10 * time.Minute
	// JitterDuration is the duration for jittering when scheduling the next periodic backup.
	JitterDuration = 30 * time.Minute
)

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	GardenClient client.Client
	SeedClient   client.Client
	Config       config.ShootStateControllerConfiguration
	Clock        clock.Clock
	SeedName     string
}

Reconciler performs periodic backups of Shoot states.

func (*Reconciler) AddToManager

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

AddToManager adds Reconciler to the given manager.

func (*Reconciler) Reconcile

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

Reconcile performs periodic backups of Shoot states and persists them into ShootState resources in the garden cluster.

func (*Reconciler) SeedNameChangedPredicate

func (r *Reconciler) SeedNameChangedPredicate() predicate.Predicate

SeedNameChangedPredicate returns a predicate which returns true for all events except updates - here it only returns true when the seed name changed.

func (*Reconciler) SeedNamePredicate

func (r *Reconciler) SeedNamePredicate() predicate.Predicate

SeedNamePredicate returns a predicate which returns true for shoots whose seed name in the spec matches the seed name the reconciler is configured with.

Jump to

Keyboard shortcuts

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