controllers

package
v2.8.2-0...-dd449ac Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FinalizerCleanup is a kubernetes finalizer for stork controllers.
	FinalizerCleanup = "stork.libopenstorage.org/finalizer-cleanup"

	// DefaultRequeue is a reconcile period for a resource on success.
	DefaultRequeue = 10 * time.Second

	// DefaultRequeueError is a reconcile period for a resource on error.
	DefaultRequeueError = 2 * time.Second
)

Variables

This section is empty.

Functions

func ContainsFinalizer

func ContainsFinalizer(meta metav1.Object, finalizer string) bool

ContainsFinalizer checks if a finalizer already exists.

func RegisterTo

func RegisterTo(mgr manager.Manager, name string, r reconcile.Reconciler, watchedObjects ...client.Object) error

RegisterTo creates a new controller for a provided config and registers it to the controller manager.

func RemoveFinalizer

func RemoveFinalizer(meta metav1.Object, finalizer string)

RemoveFinalizer removes a finalizer if it exists.

func SetFinalizer

func SetFinalizer(meta metav1.Object, finalizer string)

SetFinalizer adds a finalizer if it doesn't exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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