Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support splitting blobs when stored as OCI layer #1140

Merged
merged 16 commits into from
Dec 20, 2024

Conversation

mandelsoft
Copy link
Contributor

@mandelsoft mandelsoft commented Nov 26, 2024

What this PR does / why we need it

There are OCI repositories with a layer size limitation. Because OCM potentially maps any external artifact to a single blob stored as layer on OCI registries, this could lead to problems. An obvious problematic scenario is the transport of a multi-platform OCI image. Its blob format is an archive containing all images and all layers of those images.

This PR introduces the possibility to specify blob limits for OCI registries. The OCM-to-OCI mapping then
splits larger blobs into multiple layers.
The localBlob access method then uses a comma-separated list of blob layer-blob digest to remember the sequence of layers.
The access then combines the layerblobs again to a single stream.

Which issue(s) this PR fixes

Fixes: open-component-model/ocm-project#12

A follow-up issue open-component-model/ocm-project#338 describes the provisioning of appropriate defaults for common public registries.

@mandelsoft mandelsoft requested a review from a team as a code owner November 26, 2024 09:52
@github-actions github-actions bot added kind/feature new feature, enhancement, improvement, extension size/l Large labels Nov 26, 2024
@mandelsoft mandelsoft force-pushed the chunked branch 3 times, most recently from 193f00a to c032dc6 Compare November 26, 2024 13:01
@jakobmoellerdev
Copy link
Contributor

Relevant context is also #1142 (but not directly correlated)

@mandelsoft mandelsoft force-pushed the chunked branch 2 times, most recently from d2e335c to f4cbbb8 Compare December 11, 2024 17:43
Copy link
Contributor

@Skarlso Skarlso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a single comment.

@hilmarf hilmarf added this to the 2024-Q4 milestone Dec 20, 2024
@hilmarf hilmarf enabled auto-merge (squash) December 20, 2024 12:53
@hilmarf hilmarf merged commit 2cb3187 into open-component-model:main Dec 20, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation related kind/feature new feature, enhancement, improvement, extension size/l Large
Projects
Status: 🔒Closed
Development

Successfully merging this pull request may close these issues.

Layer Length Restriction
5 participants