runtime

package
v1.13.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleReconcileError

func HandleReconcileError(err error, log logr.Logger) (ctrl.Result, error)

HandleReconcileError will handle errors from reconcile handlers, which respects runtime errors.

Types

type RequeueAfterError

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

An error to instruct controller-runtime to requeue the processing item after specified duration without been logged as error. This should be used when a "error condition" occurrence is sort of expected and can be resolved by retry. e.g. a dependency haven't been fulfilled yet, and expected it to be fulfilled after duration. Note: use this with care,a simple wait might suits your use case better.

func NewRequeueAfterError

func NewRequeueAfterError(err error, duration time.Duration) *RequeueAfterError

NewRequeueAfterError constructs new RequeueAfterError to instruct controller-runtime to requeue the processing item after specified duration without been logged as error.

func (*RequeueAfterError) Duration

func (e *RequeueAfterError) Duration() time.Duration

func (*RequeueAfterError) Error

func (e *RequeueAfterError) Error() string

func (*RequeueAfterError) Unwrap

func (e *RequeueAfterError) Unwrap() error

type RequeueError

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

An error to instruct controller-runtime to requeue the processing item without been logged as error. This should be used when a "error condition" occurrence is sort of expected and can be resolved by retry. e.g. a dependency haven't been fulfilled yet.

func NewRequeueError

func NewRequeueError(err error) *RequeueError

NewRequeueError constructs new RequeueError to instruct controller-runtime to requeue the processing item without been logged as error.

func (*RequeueError) Error

func (e *RequeueError) Error() string

func (*RequeueError) Unwrap

func (e *RequeueError) Unwrap() error

Jump to

Keyboard shortcuts

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