Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( RunOnceDurationOverrideGVK = schema.GroupVersionKind{ Group: runoncedurationoverridev1.GroupName, Version: runoncedurationoverridev1.GroupVersion, Kind: runoncedurationoverridev1.RunOnceDurationOverrideKind, } )
Functions ¶
func NewReconciler ¶
Types ¶
type Handler ¶
type Handler interface {
Handle(context *handlers.ReconcileRequestContext, original *appsv1.RunOnceDurationOverride) (current *appsv1.RunOnceDurationOverride, result controllerreconciler.Result, handleErr error)
}
Handler is an interface that wraps the Handle method
Handle handles a reconciliation request based on the original RunOnceDurationOverride object.
Handle may change the status block based on the operations it performs, it returns the modified object. It relies on the caller to update the status. Handle will not update the status block of the original object.
If an error happens while handling the the request, handleErr will be set. On an error the request key is expected to be requeued for further retries.
If result is set, the caller is expected to to requeue the request key for further retries. It indicates that no further processing of the request should be done, In this case the caller will abort and no other handler in the chain if any should be invoked.
type HandlerChain ¶
type HandlerChain []Handler
HandlerChain defines a chain of Handler(s). A set of Handler(s) constitute a complete reconciliation process of RunOnceDurationOverride object.
func (HandlerChain) Handle ¶
func (h HandlerChain) Handle(context *handlers.ReconcileRequestContext, original *appsv1.RunOnceDurationOverride) (current *appsv1.RunOnceDurationOverride, result controllerreconciler.Result, err error)
type StatusUpdater ¶
type StatusUpdater struct {
// contains filtered or unexported fields
}
StatusUpdater updates the status of a RunOnceDurationOverride resource.
func (*StatusUpdater) Update ¶
func (u *StatusUpdater) Update(observed, desired *runoncedurationoverridev1.RunOnceDurationOverride) error
Update updates the status of a RunOnceDurationOverride resource. If the status inside of the desired object is equal to that of the observed then the function does not make an update call.