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 ¶
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 ¶
RemoveFinalizer removes a finalizer if it exists.
func SetFinalizer ¶
SetFinalizer adds a finalizer if it doesn't exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.