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

parse parent devfile from devfile registry #63

Merged
merged 10 commits into from
Mar 12, 2021

Conversation

yangcao77
Copy link
Collaborator

@yangcao77 yangcao77 commented Feb 25, 2021

Signed-off-by: Stephanie yangcao@redhat.com

What does this PR do?

This PR adds support to pull & parse parent devfile from devfile registry.
Details can be found in: devfile/api#354

This PR deprecates the existing parser functions, and created a new one ParseDevfile() which accept a struct as param.

What issues does this PR fix or reference?

Fixes devfile/api#354
Fixes devfile/api#369

Is your PR tested? Consider putting some instruction how to test your changes

Added unit tests

Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
@yangcao77 yangcao77 marked this pull request as draft February 25, 2021 17:11
Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
@yangcao77 yangcao77 marked this pull request as ready for review March 9, 2021 21:08
Copy link
Member

@maysunfaisal maysunfaisal left a comment

Choose a reason for hiding this comment

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

We should demo this to Elson before merging it and see if this is what is expected.

Also should should we do plugin.Id? Its weird to have plugin and parent uri but only parent id in the main branch. The PR to remove plugin is still a WIP.

pkg/devfile/parser/parse.go Outdated Show resolved Hide resolved
pkg/devfile/parse.go Show resolved Hide resolved
pkg/devfile/parser/parse.go Outdated Show resolved Hide resolved
pkg/devfile/parser/parse.go Show resolved Hide resolved
pkg/devfile/parser/parse.go Outdated Show resolved Hide resolved
pkg/devfile/parser/parse.go Outdated Show resolved Hide resolved
pkg/devfile/parser/parse.go Outdated Show resolved Hide resolved
pkg/devfile/parser/parse.go Outdated Show resolved Hide resolved
pkg/devfile/parser/parse.go Show resolved Hide resolved
pkg/devfile/parser/parse.go Outdated Show resolved Hide resolved
Signed-off-by: Stephanie <yangcao@redhat.com>
@yangcao77 yangcao77 force-pushed the 354-parse-parent-from-registry branch from f158c53 to c289f59 Compare March 12, 2021 20:25
Signed-off-by: Stephanie <yangcao@redhat.com>
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maysunfaisal, yangcao77

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:
  • OWNERS [maysunfaisal,yangcao77]

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

@yangcao77 yangcao77 merged commit eb1cd3b into devfile:master Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants