-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
area/devfile-specIssues related to Devfile v2Issues related to Devfile v2engine/devworkspaceIssues related to Che configured to use the devworkspace controller as workspace engine.Issues related to Che configured to use the devworkspace controller as workspace engine.kind/epicA long-lived, PM-driven feature request. Must include a checklist of items that must be completed.A long-lived, PM-driven feature request. Must include a checklist of items that must be completed.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.roadmap/1-yearEpics that are planned to complete in the short term (12 months or more)Epics that are planned to complete in the short term (12 months or more)
Description
Is 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.
rtrevi
Metadata
Metadata
Assignees
Labels
area/devfile-specIssues related to Devfile v2Issues related to Devfile v2engine/devworkspaceIssues related to Che configured to use the devworkspace controller as workspace engine.Issues related to Che configured to use the devworkspace controller as workspace engine.kind/epicA long-lived, PM-driven feature request. Must include a checklist of items that must be completed.A long-lived, PM-driven feature request. Must include a checklist of items that must be completed.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.roadmap/1-yearEpics that are planned to complete in the short term (12 months or more)Epics that are planned to complete in the short term (12 months or more)