Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retain non-ephemeral volume data when a Dev Session is stopped and reuse it when starting anew #7100

Open
1 task
rm3l opened this issue Sep 28, 2023 · 2 comments
Labels
area/dev Issues or PRs related to `odo dev` kind/user-story An issue of user-story kind lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-triage Indicates an issue or PR lacks a `triage/*` and requires one.

Comments

@rm3l
Copy link
Member

rm3l commented Sep 28, 2023

/kind user-story
/area dev

User Story

As an odo user, I want any dependencies downloaded for my project to not be lost when a Dev session is stopped, So that any subsequent odo dev sessions can start much faster (because my dependencies have already been downloaded previously).

For example, I have a pretty big Java project, that can take a lot of time to build if dependencies are not already in the local Maven repository cache.
The Devfile for my project (e.g., java-maven) defines an m2 volume component (used to mount the local Maven repo), which in turn gets translated into a Kubernetes Persistent Volume Claim (PVC) by odo.
This works fine as long as the Dev Session is running. Once it is stopped, all resources are deleted, including the m2 PVC.
If I start a new Dev Session again, the build command would have to start over again by re-downloading all dependencies, which adds friction to the development experience on such projects.

This was highlighted as a potential pain point during a recent demo at a local meetup.

Acceptance Criteria

  • odo dev should retain data from non-ephemeral volumes defined in the Devfile and reuse such volumes across Dev sessions

Links

  • Related Epic (mandatory):

/kind user-story

@openshift-ci openshift-ci bot added kind/user-story An issue of user-story kind area/dev Issues or PRs related to `odo dev` labels Sep 28, 2023
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Sep 28, 2023
@rm3l rm3l changed the title Retain volume data when a Dev Session is stopped and reuse it when starting anew Retain non-ephemeral volume data when a Dev Session is stopped and reuse it when starting anew Sep 28, 2023
Copy link
Contributor

A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 28, 2023
@rm3l
Copy link
Member Author

rm3l commented Jan 4, 2024

/remove-lifecycle stale
/lifecycle frozen

@openshift-ci openshift-ci bot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev Issues or PRs related to `odo dev` kind/user-story An issue of user-story kind lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-triage Indicates an issue or PR lacks a `triage/*` and requires one.
Projects
Status: No status
Development

No branches or pull requests

1 participant