Documentation
¶
Index ¶
- type LifecycleManager
- func (l *LifecycleManager) ConditionsManager() *conditions.ConditionManager
- func (l *LifecycleManager) Config() lifecycle.Config
- func (l *LifecycleManager) Log() *logger.Logger
- func (l *LifecycleManager) PrepareContextFunc() lifecycle.PrepareContextFunc
- func (l *LifecycleManager) Reconcile(ctx context.Context, req ctrl.Request, instance runtimeobject.RuntimeObject) (ctrl.Result, error)
- func (l *LifecycleManager) SetupWithManager(mgr ctrl.Manager, maxReconciles int, reconcilerName string, ...) error
- func (l *LifecycleManager) SetupWithManagerBuilder(mgr ctrl.Manager, maxReconciles int, reconcilerName string, ...) (*builder.Builder, error)
- func (l *LifecycleManager) Spreader() *spread.Spreader
- func (l *LifecycleManager) Subroutines() []subroutine.Subroutine
- func (l *LifecycleManager) WithConditionManagement() *LifecycleManager
- func (l *LifecycleManager) WithPrepareContextFunc(prepareFunction lifecycle.PrepareContextFunc) *LifecycleManager
- func (l *LifecycleManager) WithReadOnly() *LifecycleManager
- func (l *LifecycleManager) WithSpreadingReconciles() *LifecycleManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LifecycleManager ¶
type LifecycleManager struct {
// contains filtered or unexported fields
}
func NewLifecycleManager ¶
func NewLifecycleManager(log *logger.Logger, operatorName string, controllerName string, client client.Client, subroutines []subroutine.Subroutine) *LifecycleManager
func (*LifecycleManager) ConditionsManager ¶
func (l *LifecycleManager) ConditionsManager() *conditions.ConditionManager
func (*LifecycleManager) Config ¶
func (l *LifecycleManager) Config() lifecycle.Config
func (*LifecycleManager) Log ¶
func (l *LifecycleManager) Log() *logger.Logger
func (*LifecycleManager) PrepareContextFunc ¶
func (l *LifecycleManager) PrepareContextFunc() lifecycle.PrepareContextFunc
func (*LifecycleManager) Reconcile ¶
func (l *LifecycleManager) Reconcile(ctx context.Context, req ctrl.Request, instance runtimeobject.RuntimeObject) (ctrl.Result, error)
func (*LifecycleManager) SetupWithManager ¶
func (l *LifecycleManager) SetupWithManager(mgr ctrl.Manager, maxReconciles int, reconcilerName string, instance runtimeobject.RuntimeObject, debugLabelValue string, r reconcile.Reconciler, log *logger.Logger, eventPredicates ...predicate.Predicate) error
func (*LifecycleManager) SetupWithManagerBuilder ¶
func (l *LifecycleManager) SetupWithManagerBuilder(mgr ctrl.Manager, maxReconciles int, reconcilerName string, instance runtimeobject.RuntimeObject, debugLabelValue string, log *logger.Logger, eventPredicates ...predicate.Predicate) (*builder.Builder, error)
func (*LifecycleManager) Spreader ¶
func (l *LifecycleManager) Spreader() *spread.Spreader
func (*LifecycleManager) Subroutines ¶
func (l *LifecycleManager) Subroutines() []subroutine.Subroutine
func (*LifecycleManager) WithConditionManagement ¶
func (l *LifecycleManager) WithConditionManagement() *LifecycleManager
func (*LifecycleManager) WithPrepareContextFunc ¶
func (l *LifecycleManager) WithPrepareContextFunc(prepareFunction lifecycle.PrepareContextFunc) *LifecycleManager
WithPrepareContextFunc allows to set a function that prepares the context before each reconciliation This can be used to add additional information to the context that is needed by the subroutines You need to return a new context and an OperatorError in case of an error
func (*LifecycleManager) WithReadOnly ¶
func (l *LifecycleManager) WithReadOnly() *LifecycleManager
WithReadOnly allows to set the controller to read-only mode In read-only mode, the controller will not update the status of the instance
func (*LifecycleManager) WithSpreadingReconciles ¶
func (l *LifecycleManager) WithSpreadingReconciles() *LifecycleManager
WithSpreadingReconciles sets the LifecycleManager to spread out the reconciles
Click to show internal directories.
Click to hide internal directories.