subinstallations

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: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlueprintDefinitionFromInstallationTemplate

func GetBlueprintDefinitionFromInstallationTemplate(
	inst *lsv1alpha1.Installation,
	subInstTmpl *lsv1alpha1.InstallationTemplate,
	componentVersion model.ComponentVersion,
	repositoryContext *types.UnstructuredTypedObject,
	overwriter componentoverwrites.Overwriter) (*lsv1alpha1.BlueprintDefinition, *lsv1alpha1.ComponentDescriptorDefinition, error)

GetBlueprintDefinitionFromInstallationTemplate returns a Blueprint and a ComponentDescriptor from a subinstallation

Types

type Operation

type Operation struct {
	*installations.Operation
}

Operation contains all subinstallation operations

func New

New creates a new subinstallation operation

func (*Operation) Ensure

func (o *Operation) Ensure(ctx context.Context, subInstCache *lsv1alpha1.SubInstCache) error

Ensure ensures that all referenced definitions are mapped to a sub-installation.

func (*Operation) GetSubInstallations

func (o *Operation) GetSubInstallations(ctx context.Context, inst *lsv1alpha1.Installation,
	subInstCache *lsv1alpha1.SubInstCache, readID read_write_layer.ReadID) (map[string]*lsv1alpha1.Installation, error)

GetSubInstallations returns a map of all subinstallations indexed by the unique blueprint ref name.

func (*Operation) ValidateSubinstallations

func (o *Operation) ValidateSubinstallations(installationTmpl []*lsv1alpha1.InstallationTemplate) error

ValidateSubinstallations validates the installation templates in context of the current blueprint.

Jump to

Keyboard shortcuts

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