Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeletionReconciler ¶
type FinalizingReconciler ¶
type FinalizingReconciler[T client.Object] interface { Reconciler[T] // name of the finalizer used by this handler. // finalizer names should be unique for a single task FinalizerName() string // finalize the object before it is deleted. // Watchers created with a finalizing handler will a Finalize(ctx context.Context, object T) error }
type Loop ¶
type Loop[T client.Object] interface { RunReconciler(ctx context.Context, reconciler Reconciler[T], predicates ...predicate.Predicate) error }
a Reconcile Loop runs resource reconcilers until the context gets cancelled
type Options ¶
type Options struct { // If true will wait for cache sync before returning from RunReconcile WaitForCacheSync bool // If provided, attempt to verify the resource before beginning the reconcile loop Verifier verifier.ServerResourceVerifier }
type ReconcileFuncs ¶
type ReconcileFuncs[T client.Object] struct { ReconcileFunc func(ctx context.Context, object T) (Result, error) DeletionReconcilerFunc func(ctx context.Context, request Request) error }
func (*ReconcileFuncs[T]) DeletionReconciler ¶
func (r *ReconcileFuncs[T]) DeletionReconciler(ctx context.Context, request Request) error
type Reconciler ¶
Click to show internal directories.
Click to hide internal directories.