Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OperationAnnotationWrapper ¶
func OperationAnnotationWrapper(mgr manager.Manager, newObjFunc func() client.Object, reconciler reconcile.Reconciler) reconcile.Reconciler
OperationAnnotationWrapper is a wrapper for an reconciler that removes the Gardener operation annotation before `Reconcile` is called.
This is useful in conjunction with the HasOperationAnnotation predicate.
func ReconcileErr ¶
ReconcileErr returns a reconcile.Result or an error, depending on whether the error is a RequeueAfterError or not.
func ReconcileErrCause ¶
ReconcileErrCause returns the cause in case the error is an RequeueAfterError. Otherwise, it returns the input error.
func ReconcileErrCauseOrErr ¶
ReconcileErrCauseOrErr returns the cause of the error or the error if the cause is nil.
Types ¶
type RequeueAfterError ¶
type RequeueAfterError struct { // Cause is an optional cause that may be returned together with a time for requeueing. Cause error // RequeueAfter is the duration after which the request should be enqueued again. RequeueAfter time.Duration }
RequeueAfterError is an error that indicates that an actuator wants a reconcile operation to be requeued again after RequeueAfter has passed.
func (*RequeueAfterError) Error ¶
func (e *RequeueAfterError) Error() string