reconciler

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

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileHandler

func ReconcileHandler(operations []ReconcileOperation) (ctrl.Result, error)

ReconcileHandler will invoke all the operations to be performed as part of a resource reconcile, managing the queue based on the operations' results.

Types

type OperationResult

type OperationResult struct {
	RequeueDelay   time.Duration
	RequeueRequest bool
	CancelRequest  bool
}

OperationResult represents the result of a reconcile operation

func ContinueProcessing

func ContinueProcessing() (OperationResult, error)

ContinueProcessing returns an (OperationResult, error) tuple instructing the reconcile loop to continue processing reconciler.

func Requeue

func Requeue() (OperationResult, error)

Requeue returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object.

func RequeueAfter

func RequeueAfter(delay time.Duration, err error) (OperationResult, error)

RequeueAfter returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object after the given delay.

func RequeueOnErrorOrContinue

func RequeueOnErrorOrContinue(err error) (OperationResult, error)

RequeueOnErrorOrContinue returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object in case of an error or to continue processing reconciler.

func RequeueOnErrorOrStop

func RequeueOnErrorOrStop(err error) (OperationResult, error)

RequeueOnErrorOrStop returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object in case of an error or to stop processing reconciler.

func RequeueWithError

func RequeueWithError(err error) (OperationResult, error)

RequeueWithError returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object with the given reconcile error.

func StopProcessing

func StopProcessing() (OperationResult, error)

StopProcessing returns an (OperationResult, error) tuple instructing the reconcile loop to stop processing reconciler.

type ReconcileOperation

type ReconcileOperation func() (OperationResult, error)

ReconcileOperation defines the syntax of functions invoked by the ReconcileHandler

Jump to

Keyboard shortcuts

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