Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { CorrelationId string Request ctrl.Request Context context.Context Log logr.Logger }
Context provides context during reconciles
func NewContext ¶
NewContext creates a new context
func (Context) Complete ¶
Complete handles multiple reconcile results and triggers a requeue based on the results
type GenericFinalizer ¶
type GenericFinalizer struct {
// contains filtered or unexported fields
}
func NewGenericFinalizer ¶
func NewGenericFinalizer(finalizer string, handler func(Context) Result) GenericFinalizer
func (GenericFinalizer) Handler ¶
func (f GenericFinalizer) Handler() func(Context) Result
func (GenericFinalizer) Name ¶
func (f GenericFinalizer) Name() string
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result gives context about the result of a reconcile operation
func (Result) RequiresRequeue ¶
RequiresRequeue returns true when there was an error or a requeue was requested
type ResultList ¶
type ResultList []Result
ResultList contains a list of results
func (ResultList) AllDone ¶
func (rl ResultList) AllDone() bool
AllDone returns true when all result represents a successful and completed reconcile attempt
func (ResultList) AllSuccessful ¶
func (rl ResultList) AllSuccessful() bool
AllSuccessful returns true when all result represents a successful reconcile attempt
Click to show internal directories.
Click to hide internal directories.