controllerutil

package
v0.0.0-...-3c3457e Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reconciled

func Reconciled() (reconcile.Result, error)

func RequeueAfter

func RequeueAfter(ctx context.Context, duration time.Duration, msg string, keysAndValues ...interface{}) (reconcile.Result, error)

func RequeueWithError

func RequeueWithError(ctx context.Context, err error, msg string, keysAndValues ...interface{}) (reconcile.Result, error)

func RequeueWithErrorChecking

func RequeueWithErrorChecking(ctx context.Context, err error, msg string, keysAndValues ...interface{}) (reconcile.Result, error)

Types

type ResourceWatcher

type ResourceWatcher struct {
	// contains filtered or unexported fields
}

ResourceWatcher implements handler.EventHandler and is used to trigger reconciliation when a watched object changes. It's designed to only be used for a single type of object. If multiple types should be watched, one ResourceWatcher for each type should be used.

func NewResourceWatcher

func NewResourceWatcher() *ResourceWatcher

NewResourceWatcher will create a new ResourceWatcher with no watched objects.

func (ResourceWatcher) Create

func (ResourceWatcher) Delete

func (ResourceWatcher) Generic

func (ResourceWatcher) Update

func (ResourceWatcher) Watch

func (w ResourceWatcher) Watch(ctx context.Context, watchedName, dependentName types.NamespacedName)

Watch will add a new object to watch.

Jump to

Keyboard shortcuts

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