-
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
Failed to start workspaces using devfile spec v2.1.0 #19299
Comments
With the nightly Che I have error displayed on Dashboard, and it's the error that Che is not able to find a valid Devfile v1 or v2. When I try direct link to devfile-v2.yaml (/#https://raw.githubusercontent.com/l0rd/spring-petclinic/master/devfile-v2.yaml) I have another error: |
We only support |
The version we should target is |
To be clear, 2.1.0 hasn't been released yet, but that's the devfile/api release that is supposed to include everything required by Che (i.e. 2.0.0 is missing some stuff like cpu limits that are required by Che). |
@l0rd do you want to enable 2.1.0 after official release? |
@skabashnyuk I was expecting that we already supported |
We don't support that version at this moment. |
You tell me. I would like to support latest version of the spec. On the other hand, if aligning Che server and DevWorkspace is hard we can wait the release of @sleshchenko @amisevsk @JPinkney what do you think? |
We've thus far been rolling with whatever the latest schemaVersion for devfile 2.x is. Since 2.x is supposed to be backwards compatible, our check is basically the regex However, on the Go side, trying to deserialize unknown fields isn't an error -- if DWO supports only 2.0 (no cpuLimit) they'll just be ignored if you throw a 2.1.0 devfile at it. Since we don't have a full 2.1.0 release yet, currently DWO supports devfile features as of commit devfile/api@283b0c5, which is in-line with a |
to be honest, that check is done only when we fetch Devfile via ID or URI(devfile plugin component), but the goal is to rework it to DevWorkspaceTemplate, or both. DevWorkspace CRD itself does not have
Go side just ignore unknown fields, but kubectl does validation and throw an error when unknown field is used, and tell how to skip validation. So, technically dashboard should also warn user if validation is failed. Kubectl validation details
|
A dedicated issue is created to make Che Server embeds v2.1.0-alpha JSON Schema #19304. What is plan with 2.1.0-alpha? Is it going to be dropped after v2.1.0 is released? |
Closing this issue. Opening a new one #19322 |
Describe the bug
When I try to start a workspace using a factory link it fails with "Failed to resolve a devfile."
Che version
Nightly
Steps to reproduce
Deploy Che, on OpenShift, with devworkspace support enabled
$ cat patch.yaml spec: devWorkspace: enable: true $ chectl server:deploy --che-operator-cr-patch-yaml=patch.yaml \ -p openshift --no-olm-suggested-namespace \ -n workspaces-server
Open a factory link
Runtime
OpenShift 4.7.1
Installation method
Environment
OpenShift dev cluster
More screenshots
The text was updated successfully, but these errors were encountered: