Full support for Devfile 2.x spec
See original GitHub issueIs your enhancement related to a problem? Please describe.
Currently, devworkspace controller supports only limited of devfile 2.x format. This is epic to track which parts needs to be implemented.
schemaVersion: 2.0.0
metadata:
name: nodejs-stack
projects:
- name: project
git:
remotes: # The only one remote is supported on Che Theia side
origin: "https://github.com/che-samples/web-nodejs-sample.git"
components:
- name: editor
plugin:
id: eclipse/che-theia/7.1.0
- name: terminal
plugin:
id: eclipse/che-machine-exec-plugin/7.1.0
- name: typescript-plugin
plugin:
id: che-incubator/typescript/1.30.2 # patching of plugins configuration are not supported yet
components:
- name: "??"
container:
memoryLimit: 512Mi
- name: nodejs
container:
image: quay.io/eclipse/che-nodejs10-ubi:nightly
memoryLimit: 512Mi
endpoints:
- name: nodejs
protocol: http
targetPort: 3000
mountSources: true
- name: cleanup-job
kubernetes:
inlined: |
apiVersion: batch/v1
kind: Job
metadata:
name: pi
spec:
template:
spec:
containers:
- name: job
image: someimage
command: ["some", "command", "with", "parameters"]
restartPolicy: Never
backoffLimit: 4
- name: postgres
kubernetes: # kubernete component is not supported yet
inlined: |
kind: Deployment
metadata:
name: pi
spec:
template:
spec:
containers:
- name: job
image: someimage
command: ["some", "command", "with", "parameters"]
restartPolicy: Never
backoffLimit: 4
volumes: ## volumes are not implemented on that level
- name: ...
commands:
- id: download dependencies
exec:
component: nodejs
commandLine: npm install
workingDir: ${PROJECTS_ROOT}/project/app
group:
kind: build # groups are not supported yet
commands:
- id: cleanup-job
apply:
component: cleanup-job
events:
postStop:
- cleanup-job
preStop: ...
preStart: ...
postStart: ...
This issue is not well-described yet. More details will be provided soon.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Devfile v2 and IDE plug-ins in Eclipse Che - Medium
Milestone 1 introduced the first support of devfile v2 (start a basic workspace); Milestone 2 just landed in Eclipse Che 7.32.0 with the ......
Read more >Chapter 4. Authoring devfiles - Red Hat Customer Portal
CodeReady Workspaces supports the following project types: git: Projects with sources in Git. The location points to a clone link. github ...
Read more >Introduction to Devfile - GitHub Pages
... new devfile format was introduced, which combines simplicity and support for high variety ... curl -X POST -H "Authorization: <TOKEN>" -H "Content-Type: ......
Read more >Developing with IBM Wazi for Dev Spaces
Leverage the full language support for Ansible and Red Hat Ansible Certified ... for an application developer workspace based on devfile specifications.
Read more >Pulse · eclipse/che · GitHub
#21412 commented on Nov 22, 2022 • 2 new comments. Full support for Devfile 2.x spec. #17883 commented on Nov 23, 2022 •...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing. We will implement missing parts of the spec when there is a real request.
@amisevsk correct me if I am wrong, but it seems like the projects and sourceMapping features are supported and can be updated in the table.
Additionally, kubernetes components will be supported once https://github.com/devfile/devworkspace-operator/pull/961 is merged.