Documentation
¶
Index ¶
- Variables
- func AddControllerToManager(controllerName string, ...) error
- func NewController(ctx context.Context, ...) (reconcile.Reconciler, error)
- type Controller
- func (c *Controller) CreateImportsAndSubobjects(ctx context.Context, op *installations.Operation, imps *imports.Imports, ...) lserrors.LsError
- func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (result reconcile.Result, err error)
- func (c *Controller) SetupRegistries(ctx context.Context, op *operation.Operation, contextObj lsv1alpha1.Context, ...) error
- type DataObjectAndTargetCleaner
Constants ¶
This section is empty.
Variables ¶
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(controllerName string, 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 // 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) 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.