-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
workspace manager validates the integrity of the devfile before creating the workspace. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
...-core-api-workspace/src/main/java/org/eclipse/che/api/workspace/server/WorkspaceService.java
Outdated
Show resolved
Hide resolved
...-core-api-workspace/src/main/java/org/eclipse/che/api/workspace/server/WorkspaceService.java
Show resolved
Hide resolved
...-core-api-workspace/src/main/java/org/eclipse/che/api/workspace/server/WorkspaceManager.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
for the devfile validation during workspace creation. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
ae6de5d
to
eff4d8e
Compare
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
eff4d8e
to
c0dcb0a
Compare
ci-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...-core-api-workspace/src/main/java/org/eclipse/che/api/workspace/server/WorkspaceService.java
Show resolved
Hide resolved
...-core-api-workspace/src/main/java/org/eclipse/che/api/workspace/server/WorkspaceManager.java
Show resolved
Hide resolved
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
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