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

Add devfile validation to /workspace/devfile endpoint #13472

Merged
merged 5 commits into from
Jun 5, 2019

Conversation

metlos
Copy link
Contributor

@metlos metlos commented Jun 4, 2019

What does this PR do?

/workspace/devfile now validates the devfile against schema and workspace manager validates the integrity of the devfile before creating the workspace.

What issues does this PR fix or reference?

#13315

workspace manager validates the integrity of the devfile before creating
the workspace.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
for the devfile validation during workspace creation.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
@metlos metlos force-pushed the validate-devfile-on-create branch from ae6de5d to eff4d8e Compare June 5, 2019 06:37
@metlos
Copy link
Contributor Author

metlos commented Jun 5, 2019

ci-test

@che-bot
Copy link
Contributor

che-bot commented Jun 5, 2019

Results of automated E2E tests of Eclipse Che Multiuser on OCP:
Build details
Test report
docker image: eclipseche/che-server:13472
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
@metlos metlos force-pushed the validate-devfile-on-create branch from eff4d8e to c0dcb0a Compare June 5, 2019 07:02
@metlos
Copy link
Contributor Author

metlos commented Jun 5, 2019

ci-test

Copy link
Contributor

@skabashnyuk skabashnyuk left a comment

Choose a reason for hiding this comment

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

LGTM

@metlos metlos marked this pull request as ready for review June 5, 2019 07:43
@metlos metlos requested a review from sleshchenko as a code owner June 5, 2019 07:43
@che-bot
Copy link
Contributor

che-bot commented Jun 5, 2019

Results of automated E2E tests of Eclipse Che Multiuser on OCP:
Build details
Test report
docker image: eclipseche/che-server:13472
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
@metlos metlos merged commit 7312af9 into eclipse-che:master Jun 5, 2019
Copy link
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

Late is better than never)
LGTM

* @param contentProvider the content provider to use for resolving content references in the
* devfile
* @return new workspace instance
* @throws NullPointerException when either {@code config} or {@code namespace} is null
Copy link
Member

Choose a reason for hiding this comment

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

'{@code config}' here looks like copy/paste error

@che-bot che-bot added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Jun 27, 2019
@che-bot che-bot added this to the 7.0.0 milestone Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants