subreconciler

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContinueReconciling

func ContinueReconciling() (*reconcile.Result, error)

ContinueReconciling indicates that the reconciliation block should continue by returning a nil result and a nil error

func DoNotRequeue

func DoNotRequeue() (*reconcile.Result, error)

DoNotRequeue returns a controller result pairing specifying not to requeue.

func Evaluate

func Evaluate(r *reconcile.Result, e error) (reconcile.Result, error)

Evaluate returns the actual reconcile struct and error. Wrap helpers in this when returning from within the top-level Reconciler.

func Requeue

func Requeue() (*reconcile.Result, error)

Requeue returns a controller result pairing specifying to requeue with no error message implied. This returns no error.

func RequeueWithDelay

func RequeueWithDelay(dur time.Duration) (*reconcile.Result, error)

RequeueWithDelay returns a controller result pairing specifying to requeue after a delay. This returns no error.

func RequeueWithDelayAndError

func RequeueWithDelayAndError(dur time.Duration, e error) (*reconcile.Result, error)

RequeueWithDelayAndError returns a controller result pairing specifying to requeue after a delay with an error message.

func RequeueWithError

func RequeueWithError(e error) (*reconcile.Result, error)

RequeueWithError returns a controller result pairing specifying to requeue with an error message.

func ShouldContinue

func ShouldContinue(r *ctrl.Result, err error) bool

ShouldContinue returns the inverse of ShouldHalt.

func ShouldHaltOrRequeue

func ShouldHaltOrRequeue(r *ctrl.Result, err error) bool

ShouldHaltOrRequeue returns true if reconciler result is not nil or the err is not nil. In theory, the error evaluation is not needed because ShouldRequeue handles it, but it's included in case ShouldHaltOrRequeue is called directly.

func ShouldRequeue

func ShouldRequeue(r *ctrl.Result, err error) bool

ShouldRequeue returns true if the reconciler result indicates a requeue is required, or the error is not nil.

Types

type Fn

type Fn = func(context.Context) (*ctrl.Result, error)

type FnWithRequest

type FnWithRequest = func(context.Context, ctrl.Request) (*ctrl.Result, error)

Jump to

Keyboard shortcuts

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