Repository Context
February 21, 2024 ยท View on GitHub
Definition
A repository context describes the access to a repository that is used to resolve component version references. It features the following fields:
-
typestringThe type of the repository, e.g.
ociRegistry. -
type-specific fields
Additional fields describe attributes to address the dedicated repository instance according to the type.
A repository context is used all over the landscaper objects to resolve component descriptor references. It can be specified either directly in Installations or in Context objects referenced by Installations.
A repository context is typically described by a field repositoryContext in objects referring to a such a context.
Supported Types
OCI Registries
A component repository based on an OCI registry is described by the following additional fields:
-
baseUrlhost URLScheme, host, and port of the underlying OCI registry.
-
subPathstring (optional)The repository prefix for mapping component names to OCI artifact repositories.
-
componentNameMappingstring (optional)To support OCI registries with a limitation for repository names, there are several modes to map component names to OCI artifact repositories:
-
urlPath(default)Join
subPathand component name. -
sha256-digestEncode the component name with a sha256 digest, appended to the
subPath.
-