runtime

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LATTICE_RETRY = "LATTICE_RETRY"
)

Variables

This section is empty.

Functions

func HandleReconcileError

func HandleReconcileError(err error) (ctrl.Result, error)

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

Types

type RequeueNeededAfter

type RequeueNeededAfter 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 NewRequeueNeededAfter

func NewRequeueNeededAfter(reason string, duration time.Duration) *RequeueNeededAfter

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

func NewRetryError

func NewRetryError() *RequeueNeededAfter

Retry errors caused by Lattice APIs which need high requeueAfter seconds

func (*RequeueNeededAfter) Duration

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

func (*RequeueNeededAfter) Error

func (e *RequeueNeededAfter) Error() string

func (*RequeueNeededAfter) Reason

func (e *RequeueNeededAfter) Reason() string

Jump to

Keyboard shortcuts

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