Documentation ¶
Index ¶
- Constants
- type LifecycleManager
- func (l *LifecycleManager) Reconcile(ctx context.Context, req ctrl.Request, instance RuntimeObject) (ctrl.Result, error)
- func (l *LifecycleManager) SetupWithManager(mgr ctrl.Manager, maxReconciles int, reconcilerName string, ...) error
- func (l *LifecycleManager) WithSpreadingReconciles() *LifecycleManager
- type RuntimeObject
- type RuntimeObjectSpreadReconcileStatus
- type Subroutine
Constants ¶
View Source
const SpreadReconcileRefreshLabel = "openmfp.io/refresh-reconcile"
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(logger *logger.Logger, operatorName string, controllerName string, client client.Client, subroutines []Subroutine) *LifecycleManager
func (*LifecycleManager) Reconcile ¶
func (l *LifecycleManager) Reconcile(ctx context.Context, req ctrl.Request, instance RuntimeObject) (ctrl.Result, error)
func (*LifecycleManager) SetupWithManager ¶
func (l *LifecycleManager) SetupWithManager(mgr ctrl.Manager, maxReconciles int, reconcilerName string, instance RuntimeObject, debugLabelValue string, r reconcile.Reconciler, eventPredicates ...predicate.Predicate) error
func (*LifecycleManager) WithSpreadingReconciles ¶ added in v0.5.0
func (l *LifecycleManager) WithSpreadingReconciles() *LifecycleManager
WithSpreadingReconciles sets the LifecycleManager to spread out the reconciles
type RuntimeObjectSpreadReconcileStatus ¶ added in v0.5.0
type Subroutine ¶
type Subroutine interface { Process(ctx context.Context, instance RuntimeObject) (ctrl.Result, errors.OperatorError) Finalize(ctx context.Context, instance RuntimeObject) (ctrl.Result, errors.OperatorError) GetName() string Finalizers() []string }
Click to show internal directories.
Click to hide internal directories.