Skip to content

Che workspaces fail to start with OpenShift Console samples #20616

@l0rd

Description

@l0rd

Is your enhancement related to a problem? Please describe

If I try to start a v2 devfile in Che with DevWorkspace disabled it will fail. For example workspaces.openshift.com/#https://github.com/redhat-developer/devfile-sample.git.

image

That's problematic because OpenShift developer console has 4 examples with a devfile v2 at its root:

image

And those will fail to fail to open in Che when using OpenShift Developer Console topology link

image

Describe the solution you'd like

In the very short term, when DW is not enabled but the che-server returns a v2 devfile.yaml, we should use devfile v2 to v1 conversion lib used by Che-Theia.

In the long term, for those these 3 cases:

  • if DW is enabled but the che-server returns a v1 devfile.yaml
  • if che-server consider the devfile invalid
  • if che-server cannot validate becuse the specVersion is not supported

warn the user (with a clear message that specifies that the problem is one of 3 above, a link to the problematic devfile and the possible workarounds) and ask if he prefers to interrupt workspace startup (and eventually fix the devfile) or discard the devfile content and move forward with the creation of the workspace.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions