Skip to content

docs(conventions): define artefact-linking label convention - #146

Merged
8R0WNI3 merged 5 commits into
open-component-model:mainfrom
bedirhan-yilmaz:feat/artefact-linking-label-convention
Aug 10, 2026
Merged

docs(conventions): define artefact-linking label convention#146
8R0WNI3 merged 5 commits into
open-component-model:mainfrom
bedirhan-yilmaz:feat/artefact-linking-label-convention

Conversation

@bedirhan-yilmaz

@bedirhan-yilmaz bedirhan-yilmaz commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Adds a convention to the OCM spec for expressing cross-artefact relationships via labels. This allows a derived resource (e.g. an SBoM) to declare which subject resource it relates to within the same component version, using a structured label placed on the derived artefact.

Which issue(s) this PR is related to

Fixes open-component-model/open-delivery-gear#126

…ationships

Signed-off-by: Bedirhan Yilmaz (bedirhan-yilmaz) <bedirhan.yilmaz@sap.com>
Comment thread doc/01-model/06-conventions.md Outdated
Comment thread doc/01-model/06-conventions.md Outdated
Comment thread doc/01-model/06-conventions.md Outdated
Comment thread doc/01-model/06-conventions.md Outdated
Comment thread doc/01-model/06-conventions.md Outdated
Signed-off-by: Bedirhan Yilmaz (bedirhan-yilmaz) <bedirhan.yilmaz@sap.com>
Comment thread doc/01-model/06-conventions.md
Comment thread doc/01-model/06-conventions.md Outdated
Comment thread doc/01-model/06-conventions.md Outdated
Comment thread doc/01-model/06-conventions.md Outdated
Comment thread doc/01-model/06-conventions.md Outdated
…e structure

Signed-off-by: Bedirhan Yilmaz (bedirhan-yilmaz) <bedirhan.yilmaz@sap.com>
@bedirhan-yilmaz
bedirhan-yilmaz force-pushed the feat/artefact-linking-label-convention branch from ee2a87e to ef044c9 Compare July 28, 2026 11:31
@bedirhan-yilmaz

bedirhan-yilmaz commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Since the K8S docs and ODG labels use kebab-case, I suggest we take the same approach for the label format

@bedirhan-yilmaz
bedirhan-yilmaz requested a review from 8R0WNI3 July 28, 2026 11:38
Comment thread doc/01-model/06-conventions.md Outdated
### Label Name

```
ocm.software/artefact-references

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Do we think we will move towards a new spec version with artifacts instead of resources and sources soon? Currently, it seems rather like we will deprecate sources and keep the rest of the spec. So maybe ocm.software/resource-references would be more fitting?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The idea here was to make this label agnostic of resources and sources and allow usage on both of those artifacts. For this use case, the same terminology as in the spec was used.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For this use case, the same terminology as in the spec was used.

This actually diverges from the spec, as its spelled artefact here. So ironically the "conventions" document is now inconsistent with itself and does the opposite of its stated intent.

Going through this PR it does not appear this was a conscious decision? I believe the established consensus is to use the american spelling and this was overlooked

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Comment thread doc/01-model/06-conventions.md Outdated
Comment thread doc/01-model/07-extensions.md Outdated
Comment thread doc/01-model/07-extensions.md
Signed-off-by: Bedirhan Yilmaz (bedirhan-yilmaz) <bedirhan.yilmaz@sap.com>
Comment thread doc/01-model/07-extensions.md Outdated
Signed-off-by: Bedirhan Yilmaz (bedirhan-yilmaz) <bedirhan.yilmaz@sap.com>
@8R0WNI3
8R0WNI3 merged commit 99befa0 into open-component-model:main Aug 10, 2026
5 checks passed
Skarlso pushed a commit that referenced this pull request Aug 27, 2026
#### What this PR does / why we need it
#146 introduced a regression in the [uniform naming of
`artifact`](#146 (comment)).

Looking at #39 and #40 this was an issue previously and `artifact` won.
Presently the conventions document, whose purpose is to `ensure
uniformity` uses two different spellings.

#### Which issue(s) this PR is related to
<!--
Usage: `Related to #<issue number>`, or `Related to (paste link of
issue)`.
-->

Signed-off-by: Johannes Neisener <johannes@neisener.de>
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.

Define OCM artefact reference label contract

7 participants