reconciler

package
v0.0.0-...-4a3d265 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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 *autoscalingv1.ClusterResourceOverride) (current *autoscalingv1.ClusterResourceOverride, result controllerreconciler.Result, handleErr error)
}

Handler is an interface that wraps the Handle method

Handle handles a reconciliation request based on the original ClusterResourceOverride 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 ClusterResourceOverride object.

type StatusUpdater

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

StatusUpdater updates the status of a ClusterResourceOverride resource.

func (*StatusUpdater) Update

func (u *StatusUpdater) Update(observed, desired *autoscalingv1.ClusterResourceOverride) error

Update updates the status of a ClusterResourceOverride 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