controllerruntime

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (*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

Jump to

Keyboard shortcuts

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