namespacefinalizer

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Client             client.Client
	NamespaceFinalizer utilclient.Finalizer
}

Reconciler is a reconciler that finalizes namespaces once they are marked for deletion. This is useful for integration testing against an envtest control plane, which doesn't run the namespace controller. Hence, if the tested controller must wait for a namespace to be deleted, it will be stuck forever. This reconciler finalizes namespaces without deleting their contents, so use with care.

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, req reconcile.Request) (reconcile.Result, error)

Reconcile finalizes namespaces as soon as they are marked for deletion.

Jump to

Keyboard shortcuts

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