-
Notifications
You must be signed in to change notification settings - Fork 24
Using absolute access types for transferred-by-value artifacts is problematic #1410
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
Comments
Hey @anbrsap, we are aware of this issue when working with in-cluster registries. There is the concept of A quick warning, we are currently working on a new version of the current ocm cli. And while we are generally doing our best to keep backward compatibility, the |
@fabianburth: I tested #1412 locally. It works! Here's what I did:
Still, the component manifest contains traces of the registry name used for uploading: component:
repositoryContexts:
- baseUrl: http://localhost:1111
componentNameMapping: urlPath
subPath: components-c
type: OCIRegistry I don't know if this may cause trouble. |
Hi @anbrsap , the |
Scenario
The component version is transferred into the cluster-internal registry using port-forwarding:
Problem
The artifact consumption from within the cluster fails.
Example using OCM CLI:
It tries to get the artifact (
image--busybox
) using the registry host name + portlocalhost:9999
that was used when uploading the component version. But this is not valid in the consumer's environment.The component version descriptor in the registry looks like this:
component.resources[0].access
is an absolute reference, although the artifact is stored with the component descriptor in the same OCM repository.Proposed Solution
For all artifacts contained in the same OCM repository as the component version descriptor relative access types should be used (relative to OCM repo location of component version descriptor). This avoids storing the URL of the OCM repository, and thus makes the descriptor portable.
Further Information
The described problem arises in all scenarios where the OCM repo URL during uploads of component versions differs from the OCM repo URL used by consumers, for example:
The text was updated successfully, but these errors were encountered: