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 ¶
MapControllerInstallationToSeed returns a reconcile.Request object for the seed specified in the .spec.seedRef.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.
Click to show internal directories.
Click to hide internal directories.