controller

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddControllerToManager

func AddControllerToManager(baseLogger logging.Logger, mgr manager.Manager, cfg *config.K8SyncerConfiguration, syncConfig *config.SyncConfig, persisters map[string]persist.Persister) error

AddControllerToManager register the installation Controller in a manager.

Types

type Controller

type Controller struct {
	Client         client.Client
	Config         *config.K8SyncerConfiguration
	SyncConfig     *config.SyncConfig
	StorageConfigs []*StorageConfiguration
	GVK            schema.GroupVersionKind
	StateDisplay   state.StateDisplay
}

func NewController

func NewController(client client.Client, cfg *config.K8SyncerConfiguration, syncConfig *config.SyncConfig, persisters map[string]persist.Persister) (*Controller, error)

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

type DeletionTimestampChangedPredicate

type DeletionTimestampChangedPredicate struct {
	predicate.Funcs
}

DeletionTimestampChangedPredicate reacts to changes of the deletion timestamp.

func (DeletionTimestampChangedPredicate) Update

type OwnerReferencesChangedPredicate

type OwnerReferencesChangedPredicate struct {
	predicate.Funcs
}

OwnerReferencesChangedPredicate reacts to changes of the owner references.

func (OwnerReferencesChangedPredicate) Update

type StorageConfiguration

type StorageConfiguration struct {
	*config.StorageReference
	*config.StorageDefinition
	Persister   persist.Persister
	Transformer persist.Transformer
}

StorageConfiguration is a helper struct to bundle a storage reference with its definition.

func (*StorageConfiguration) Name

func (sc *StorageConfiguration) Name() string

Jump to

Keyboard shortcuts

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