Documentation ¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster, seedCluster cluster.Cluster) error
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *Reconciler) SeedNameChangedPredicate() predicate.Predicate
- func (r *Reconciler) SeedNamePredicate() predicate.Predicate
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.
Click to show internal directories.
Click to hide internal directories.