Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeletionReconciler ¶
type DeletionReconciler interface {
// we received a reconcile request for an object that was removed from the cache
// requeue the object if returning an error
ReconcileDeletion(request Request) error
}
type FinalizingReconciler ¶
type FinalizingReconciler interface {
Reconciler
// 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(object ezkube.Object) error
}
type Loop ¶
type Loop interface {
RunReconciler(ctx context.Context, reconciler Reconciler, 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 Reconciler ¶
type Reconciler interface {
// reconcile an object
// requeue the object if returning an error, or a non-zero "requeue-after" duration
Reconcile(object ezkube.Object) (Result, error)
}
Click to show internal directories.
Click to hide internal directories.