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

!OCI Annotations change in Component Descriptor for Component Versions: ocm-artifact -> software.ocm.artifact and introduce software.ocm.creator #987

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

mandelsoft
Copy link
Contributor

@mandelsoft mandelsoft commented Oct 18, 2024

What this PR does / why we need it

For OCM repositories based on OCI registries, the manifest now gets an annotation software.ocm.componentversion with the component version it represents.

The image spec (https://github.com/opencontainers/image-spec/blob/main/annotations.md) state, that annotation names should use a reverse DNS domain prefix.

Therefore we should adapt the names of the already existing layer annotations accordingly. This PR prepends the actuals names with `software.ocm.".

The old layer annotation changes from ocm-artifact -> software.ocm.artifact.

Which issue(s) this PR fixes

Fixes open-component-model/ocm-project#190

@mandelsoft mandelsoft requested a review from a team as a code owner October 18, 2024 16:17
@mandelsoft mandelsoft marked this pull request as draft October 18, 2024 16:19
@jakobmoellerdev jakobmoellerdev changed the title OCI Annotations OCI Annotations change in Component Descriptor for Component Versions: ocm-artifact -> software.ocm.artifact Oct 21, 2024
@jakobmoellerdev jakobmoellerdev changed the title OCI Annotations change in Component Descriptor for Component Versions: ocm-artifact -> software.ocm.artifact !OCI Annotations change in Component Descriptor for Component Versions: ocm-artifact -> software.ocm.artifact Oct 21, 2024
@mandelsoft mandelsoft force-pushed the annotations branch 3 times, most recently from 2d38326 to df9e942 Compare October 21, 2024 10:01
@mandelsoft mandelsoft force-pushed the annotations branch 2 times, most recently from 5f1fc6b to 6086f6a Compare October 21, 2024 12:09
@jakobmoellerdev jakobmoellerdev changed the title !OCI Annotations change in Component Descriptor for Component Versions: ocm-artifact -> software.ocm.artifact !OCI Annotations change in Component Descriptor for Component Versions: ocm-artifact -> software.ocm.artifact and introduce software.ocm.creator Oct 21, 2024
Copy link
Contributor

@jakobmoellerdev jakobmoellerdev left a comment

Choose a reason for hiding this comment

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

LGTM for me, feel free to move out of draft.

@mandelsoft mandelsoft marked this pull request as ready for review October 23, 2024 12:22
@mandelsoft mandelsoft merged commit 71d79e4 into open-component-model:main Oct 23, 2024
15 checks passed
@mandelsoft mandelsoft deleted the annotations branch October 23, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable upload handler to annotate artifacts
2 participants