installations

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SiblingImportError = errors.New("a sibling still imports some of the exports")
	SiblingDeleteError = errors.New("deletion of a sibling failed")
)

Functions

func AddControllerToManager

func AddControllerToManager(lsUncachedClient, lsCachedClient, hostUncachedClient, hostCachedClient client.Client,
	logger logging.Logger, lsMgr manager.Manager, config *config.LandscaperConfiguration, callerName string) error

AddControllerToManager register the installation Controller in a manager.

func NewController

func NewController(ctx context.Context,
	lsUncachedClient, lsCachedClient, hostUncachedClient, hostCachedClient client.Client,
	logger logging.Logger,
	scheme *runtime.Scheme,
	eventRecorder record.EventRecorder,
	lsConfig *config.LandscaperConfiguration,
	maxNumberOfWorkers int,
	lockingEnabled bool,
	callerName string) (reconcile.Reconciler, error)

NewController creates a new Controller that reconciles Installation resources.

Types

type Controller

type Controller struct {
	operation.Operation

	LsConfig    *config.LandscaperConfiguration
	SharedCache cache.Cache
	// contains filtered or unexported fields
}

Controller is the controller that reconciles a installation resource.

func NewTestActuator

func NewTestActuator(lsCachedClient, hostUncachedClient, hostCachedClient client.Client,
	op operation.Operation, logger logging.Logger, passiveClock clock.PassiveClock,
	configuration *config.LandscaperConfiguration, callerName string) *Controller

NewTestActuator creates a new Controller that is only meant for testing.

func (*Controller) CreateImportsAndSubobjects

func (c *Controller) CreateImportsAndSubobjects(ctx context.Context, op *installations.Operation, imps *imports.Imports,
	subInstCache *lsv1alpha1.SubInstCache) lserrors.LsError

func (*Controller) Reconcile

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

func (*Controller) SetupRegistries

func (c *Controller) SetupRegistries(ctx context.Context, op *operation.Operation, contextObj lsv1alpha1.Context, pullSecrets []lsv1alpha1.ObjectReference,
	installation *lsv1alpha1.Installation) error

SetupRegistries sets up components and blueprints registries for the current reconcile

type DataObjectAndTargetCleaner

type DataObjectAndTargetCleaner struct {
	// contains filtered or unexported fields
}

func NewDataObjectAndTargetCleaner

func NewDataObjectAndTargetCleaner(installation *lsv1alpha1.Installation, cl client.Client) *DataObjectAndTargetCleaner

func (*DataObjectAndTargetCleaner) CleanupContext

func (c *DataObjectAndTargetCleaner) CleanupContext(ctx context.Context) error

CleanupContext deletes all DataObjects and Targets in the context of the given Installation.

func (*DataObjectAndTargetCleaner) CleanupExports

func (c *DataObjectAndTargetCleaner) CleanupExports(ctx context.Context) error

CleanupExports deletes all DataObjects and Targets exported by the given Installation. These are the DataObjects and Targets that 1. belong to the namespace of the Installation and 2. have a source label (data.landscaper.gardener.cloud/source) indicating that they have been exported by the Installation.

Jump to

Keyboard shortcuts

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