Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPredicates ¶
DefaultPredicates returns the default predicates for a reconciler.
Types ¶
type Actuator ¶
type Actuator interface {
// CreateOrUpdate reconciles object creation or update.
CreateOrUpdate(context.Context, client.Object) (time.Duration, error)
// Delete reconciles object deletion.
Delete(context.Context, client.Object) error
// ShouldFinalize returns true if the object should be finalized.
ShouldFinalize(context.Context, client.Object) (bool, error)
}
Actuator acts upon objects being reconciled by a Reconciler.
type AddArgs ¶
type AddArgs struct {
// Actuator is an actuator.
Actuator Actuator
// ControllerName is the name of the controller.
ControllerName string
// FinalizerName is the finalizer name.
FinalizerName string
// ControllerOptions are the controller options to use when creating a controller.
// The Reconciler field is always overridden with a reconciler created from the given actuator.
ControllerOptions controller.Options
// Type is the object type to watch.
Type client.Object
// Predicates are the predicates to use when watching objects.
Predicates []predicate.Predicate
// WatchBuilder defines additional watches that should be set up.
WatchBuilder extensionscontroller.WatchBuilder
}
AddArgs are arguments for adding a controller to a manager.
Click to show internal directories.
Click to hide internal directories.