question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updates to the Devfile 2 model to support Che workspaces

See original GitHub issue

Is your enhancement related to a problem? Please describe.

There are some features of workspaces that could be specified using a Devfile v1 that it’s not possible to specify using Devfile v2 yet.

Describe the solution you’d like

spec:
  components:
    - name: my-ephemeral-volume 
      volume:
        ephemeral: false # Volume my-ephemeral-volume will be mounted as emptyDir
  • asynchronous storage controller team
  • Support secret and configmap injection (to review if we want to support current injection mechanism) controller team ^ we don’t need to have it on devfile model, we’re going to implement it in the same way as currently Che does, match secrets and configmaps with their labels/annotations.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
l0rdcommented, Mar 3, 2021

@amisevsk makes sense. So that would not require a change in the devfile v2 model spec and I am closing this issue then. I have opened an issue for the storageType annotation: https://github.com/eclipse/che/issues/19194

0reactions
amisevskcommented, Mar 3, 2021

@l0rd No, I don’t think so. I view the ephemeral field on volumes as serving a separate purpose – it allows you to share data between containers without requiring persistent storage. The idea would be to have the overall workspace have [common|ephemeral|async] storage, but you can mark individual volumes in the devfile as ephemeral if you just want shared disk between images (a great example of this is the remote runtimes volume, which we want to be ephemeral even in an async/common workspace).

Having a per-volume setting for storageType becomes very tricky, as there could be conflicts (e.g. one volume uses common and one uses async, which would mean mounting the common PV in two places).

For storageType: ephemeral, setting ephemeral: true on volumes would have no effect, but for common/async it’s needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 4. Authoring devfiles - Red Hat Customer Portal
Che -Theia plug-ins with tools, IDE features, and helpers that a developer would use in the workspace, for example, Git, Java support, SonarLint,...
Read more >
Devfile v2 and the DevWorkspace Operator - Part 1
With version 7.28 of Che we have introduced a new workspace engine, the DevWorkspace Operator, that supports v2 of the Devfile specification ...
Read more >
a simpler and more lightweight kubernetes-native architecture ...
Dashboard provides the list, status, progress of DevWorkspaces; Updates to the devfile model to support ephemeral and asynchronous volumes ...
Read more >
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 >
Introduction to Eclipse Che :: Eclipse Che Documentation
Introduction to Eclipse Che. ... Workspace model. Che defines the ... Task support: Tasks from Visual Studio Code are extended and support Che...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found