Skip to content

Add project in DevWorkspace CRD spec and deprecate projects from the devfile spec #21188

@l0rd

Description

@l0rd

Is your enhancement related to a problem? Please describe

We are removing projects from the Devfile spec and leave only starterProjects (issue). The reasons:

  • when a Devfile lives in a git repo, close to the project source code, projects can (and should) be omitted
  • when a Devfile lives outside a git repo, far from the project source code, projects and starterProjects are pretty similar
  • when the need is to open multiple projects in the IDE, it’s better to have distinct Devfiles/dw (one per project) rather than one “uber” devfile/dw for all projects

Describe the solution you'd like

Current DW spec

kind: DevWorkspace
apiVersion: workspace.devfile.io/v1alpha2
metadata:
  name: theia-next
spec:
  started: true
  template:
    projects:
      - name: web-nodejs-sample
        git:
          remotes:
            origin: "https://github.com/che-samples/web-nodejs-sample.git"
(...)

Future DW spec

kind: DevWorkspace
apiVersion: workspace.devfile.io/v1alpha2
metadata:
  name: theia-next
spec:
  started: true
  project:
    name: web-nodejs-sample
    git:
      remotes:
        origin: "https://github.com/che-samples/web-nodejs-sample.git"
  template:
    (...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/devworkspace-operatorkind/enhancementA feature request - must adhere to the feature request template.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.severity/P1Has a major impact to usage or development of the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions