reconciler

package
v0.0.0-...-930f216 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewReconciler

func NewReconciler(options *handlers.Options) *reconciler

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

type StatusUpdater

type StatusUpdater struct {
	// contains filtered or unexported fields
}

StatusUpdater updates the status of a RunOnceDurationOverride resource.

func (*StatusUpdater) Update

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL