controllers

package
v2.6.4-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 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 ...runtime.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