finalizer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	/*
	   EnsureAttached ensures a finalizer for the configured reconciler is
	   registered on the API object.

	   If it's not it will add it and update the object.
	*/
	EnsureAttached(context.Context, runtime.Object) error

	/*
	   EnsureDetached ensures a finalizer for the configured reconciler is
	   not registered on the API object.

	   If it is it will remove it and update the object.
	*/
	EnsureDetached(context.Context, runtime.Object) error
}

Manager manages resistration and de-registration of a finalizer on an API object in an idempotent way.

func New

func New(
	log logr.Logger,
	client client.Client,
	reconciler resources.ResourceReconciler,
) Manager

New creates a new instance of finalizer Manager

Jump to

Keyboard shortcuts

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