Documentation ¶
Index ¶
Constants ¶
View Source
const ControllerName = "shoot-reference"
ControllerName is the name of this controller.
View Source
const FinalizerName = "gardener.cloud/reference-protection"
FinalizerName is the name of the finalizer used for the reference protection.
Variables ¶
View Source
var ( // UserManagedSelector is a selector for objects which are managed by users and not created by Gardener. UserManagedSelector = client.MatchingLabelsSelector{Selector: labels.NewSelector().Add(noGardenRole)} )
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { Client client.Client Config config.ShootReferenceControllerConfiguration }
Reconciler checks the shoot in the given request for references to further objects in order to protect them from deletions as long as they are still referenced.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager) 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 checks the shoot in the given request for references to further objects in order to protect them from deletions as long as they are still referenced.
func (*Reconciler) ShootPredicate ¶
func (r *Reconciler) ShootPredicate() predicate.Predicate
ShootPredicate reacts on CREATE and on UPDATE events.
Click to show internal directories.
Click to hide internal directories.