open-component-model / ocm

Open Component Model (Software Bill of Delivery Toolset)
https://ocm.software
Apache License 2.0
32 stars 23 forks source link

Make RepositoryContext optional #717

Open jensh007 opened 5 months ago

jensh007 commented 5 months ago

What would you like to be added:

Make the creation of the RepositoryContext optional when pushing a component-descriptor to an OCI registry. It should be made optional and disabled by default.

Why is this needed:

Currently ocm CLI always creates a RepositoryCtx entry in the component descriptor when it is pushed to an OCI registry. There are scenarios where this behavior is problematic. If component-descriptors are transferred without using the OCM tooling for example the RepositoryContext is wrong.

morri-son commented 3 months ago

@jensh007, is this still required? Now that the colleagues from staging service use OCM tooling to transfer images.