Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleReconcileError ¶
HandleReconcileError will handle errors from reconcile handlers, which respects runtime errors.
func NewConciseLogger ¶
NewConciseLogger constructs new conciseLogger
Types ¶
type RequeueNeeded ¶
type RequeueNeeded 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 NewRequeueNeeded ¶
func NewRequeueNeeded(reason string) *RequeueNeeded
NewRequeueNeeded constructs new RequeueError to instruct controller-runtime to requeue the processing item without been logged as error.
func (*RequeueNeeded) Error ¶
func (e *RequeueNeeded) Error() string
func (*RequeueNeeded) Reason ¶
func (e *RequeueNeeded) Reason() string
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 (*RequeueNeededAfter) Duration ¶
func (e *RequeueNeededAfter) Duration() time.Duration
func (*RequeueNeededAfter) Error ¶
func (e *RequeueNeededAfter) Error() string
func (*RequeueNeededAfter) Reason ¶
func (e *RequeueNeededAfter) Reason() string