conditions

package
v1.56.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "shoot-conditions"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Client client.Client
	Config config.ShootConditionsControllerConfiguration
}

Reconciler reconciles Shoots registered as Seeds and maintains the Seeds conditions in the Shoot status.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) MapSeedToShoot

func (r *Reconciler) MapSeedToShoot(ctx context.Context, log logr.Logger, reader client.Reader, obj client.Object) []reconcile.Request

MapSeedToShoot is a mapper.MapFunc for mapping a Seed to a Shoot in case it is managed by a ManagedSeed.

func (*Reconciler) Reconcile

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

Reconcile reconciles Shoots registered as Seeds and copies the Seed conditions to the Shoot object.

func (*Reconciler) SeedPredicate

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

SeedPredicate reacts on Seed events that indicate that the conditions of the registered Seed changed.

func (*Reconciler) ShootPredicate

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

ShootPredicate reacts only on 'CREATE' Shoot events.

Jump to

Keyboard shortcuts

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