Skip to content

Support v2.2 Devfiles #20850

@l0rd

Description

@l0rd

Is your enhancement related to a problem? Please describe

The OpenShift Developer Console will include some new examples that have Devfiles withouth placeholder outerloop component. But those Devfiles will use v2.2 of the spec.

Trying to start a workspace from this repo https://github.com/devfile-samples/devfile-sample-java-springboot-basic, on che next with devworkspace enabled, I faced the following problems:

  1. Components of type image is considered invalid
  2. Command build-image references the component of type image that is not supported
  3. Commands of type composite are not supported
  4. mvn commands fail because the default workingDir is /projects
  5. (Related but not a problem with the devfile above): special variable $PROJECT_SOURCE is not supported

Describe the solution you'd like

  • When DevWorkspace is enabled:
  1. DevWorkspace supports image components ignoring them
  2. DevWorkspace ignores commands associated to image components
  3. DevWorkspace supports composite commands
  4. DevWorkspace sets default working directory to first project folder (not /projects/)
  5. DevWorkspace supports PROJECT_SOURCE (not PROJECTS_SOURCE)
  6. DevWorkspace ignores placeholder outerloop component
  1. Devfile converter removes any image components during conversion
  2. Devfile converter removes commands associated to image components
  3. Devfile converter removes composite commands
  4. Devfile converter sets default working directory to first project folder (not /projects/)
  5. Devfile converter replaces PROJECT_SOURCE with the path to the first project /projects/
  6. Devfile converter removes placeholder outerloop component

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/devfile-specIssues related to Devfile v2area/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