clusterfinalizer

package
v1.140.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "controllerregistration-cluster-finalizer"

ControllerName is the name of this controller.

View Source
const FinalizerName = "core.gardener.cloud/controllerregistration"

FinalizerName is the finalizer used by this controller.

Variables

This section is empty.

Functions

func MapControllerInstallationToSeed

func MapControllerInstallationToSeed(_ context.Context, obj client.Object) []reconcile.Request

MapControllerInstallationToSeed returns a reconcile.Request object for the seed specified in the .spec.seedRef.name field.

func MapControllerInstallationToShoot

func MapControllerInstallationToShoot(_ context.Context, obj client.Object) []reconcile.Request

MapControllerInstallationToShoot returns a reconcile.Request object for the shoot specified in the .spec.shootRef.name field.

Types

type Reconciler

type Reconciler struct {
	Client                            client.Client
	NewTargetObjectFunc               func() client.Object
	NewControllerInstallationSelector func(obj client.Object) client.MatchingFields
}

Reconciler reconciles Seeds or Shoots and manages the finalizer on these objects depending on whether ControllerInstallation objects exist in the system. It basically protects Seeds from being deleted, if there are still ControllerInstallations referencing it, to make sure we are able to clean up ControllerInstallation objects of terminating Seeds/Shoots.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager, mapObjectToControllerInstallationFunc func(context.Context, client.Object) []reconcile.Request, objKind string) 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 reconciles Seeds.

Jump to

Keyboard shortcuts

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