extensions

package
v1.68.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ControllerName = "shootstate-extensions"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	GardenClient client.Client
	SeedClient   client.Client
	Config       config.ShootStateSyncControllerConfiguration

	ObjectKind    string
	NewObjectFunc func() client.Object
}

Reconciler is used to update data about extensions and any resources required by them in the ShootState.

func (*Reconciler) AddToManager

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

AddToManager adds Reconciler to the given manager.

func (*Reconciler) InvalidOperationAnnotationPredicate

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

InvalidOperationAnnotationPredicate returns a predicate which evaluates to false if the object has one of the following operation annotations: 'wait-for-state', 'restore', 'migrate'.

func (*Reconciler) ObjectPredicate

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

ObjectPredicate returns true for 'create' and 'update' events. For updates, it only returns true when the extension state or the extension resources in the status have changed, or when the operation annotation has changed.

func (*Reconciler) Reconcile

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

Reconcile performs the main reconciliation logic.

Jump to

Keyboard shortcuts

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