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

Update handling of registryUrls to match expectation from registry.devfile.io #770

Merged
merged 2 commits into from
Feb 8, 2022

Conversation

amisevsk
Copy link
Collaborator

@amisevsk amisevsk commented Feb 4, 2022

What does this PR do?

Update the flatten library to resolve plugins/parents from <registryUrl>/devfiles/<id>, as this appears to be what's expected in the main devfile registry -- e.g. https://registry.devfile.io/viewer/devfiles/Community+nodejs-basic uses

parent:
  id: nodejs
  registryUrl: "https://registry.devfile.io"

which refers to the devfile https://registry.devfile.io/devfiles/nodejs

What issues does this PR fix or reference?

N/A

Is it tested? How?

Test cases are updated.

PR Checklist

  • E2E tests pass (when PR is ready, comment /test v8-devworkspace-operator-e2e, v8-che-happy-path to trigger)
    • v8-devworkspace-operator-e2e: DevWorkspace e2e test
    • v8-che-happy-path: Happy path for verification integration with Che

When specifying a plugin/parent via registryUrl + id, the devfile spec
assumes that the devfile with <id> will be served from

  <registryUrl>/devfiles/<id>

This updates the operator to follow this convention when flattening
devfiles.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Update existing test cases to use the convention that registry devfiles
are stored at <registryUrl>/devfiles/<id>

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Feb 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amisevsk, ibuziuk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@amisevsk
Copy link
Collaborator Author

amisevsk commented Feb 7, 2022

/test v8-devworkspace-operator-e2e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants