-
Notifications
You must be signed in to change notification settings - Fork 54
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
per-workspace storage PVC size calculation is incorrect when no volumes defined & mountSources used #1239
Labels
bug
Something isn't working
Comments
AObuchow
moved this from 📅 Planned for this Sprint
to 🚧 In Progress
in Eclipse Che Team B Backlog
Apr 8, 2024
AObuchow
added a commit
to AObuchow/devworkspace-operator
that referenced
this issue
Apr 17, 2024
Fix devfile#1239 This commit fixes an edge case where a devworkspace that has no volume components, but has a container component with mountSources enabled will request a PVC size of 0 when using the per-workspace storage strategy. When mountSources are used, the devworkspace requires storage to store the project sources. However, it is unknown how much storage is actually required for the project sources. Thus, we treat container components with mountSources enabled as if they were volume components with an unspecified size. Signed-off-by: Andrew Obuchowicz <[email protected]>
AObuchow
changed the title
per-workspace storage PVC size calculation is incorrect when no volumes defined
per-workspace storage PVC size calculation is incorrect when no volumes defined & mountSources used
Apr 17, 2024
3 tasks
AObuchow
added a commit
to AObuchow/devworkspace-operator
that referenced
this issue
Apr 17, 2024
Fix devfile#1239 This commit fixes an edge case where a devworkspace that has no volume components, but has a container component with mountSources enabled will request a PVC size of 0 when using the per-workspace storage strategy. When mountSources are used, the devworkspace requires storage to store the project sources. However, it is unknown how much storage is actually required for the project sources. Thus, we treat container components with mountSources enabled as if they were volume components with an unspecified size. Signed-off-by: Andrew Obuchowicz <[email protected]>
AObuchow
moved this from 🚧 In Progress
to Ready for Review
in Eclipse Che Team B Backlog
Apr 17, 2024
The original PR aiming to resolve this issue has been closed as I didn't get a chance to continue my work on it (low priority), but the solution I wanted to use for this issue is described in this comment: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If a devworkspace uses per-workspace storage, has
mountSources: true
but has no volumes defined, the calculated PVC size will erroneously be 0.How To Reproduce
Expected behavior
If a devworkspace which does not define any volumes but has mountSources enabled, then the default PVC size should be used when using the per-workspace storage strategy.
The text was updated successfully, but these errors were encountered: