You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DevWorkspace will fail with the following error:
Error provisioning storage: Failed to sync storage-workspace8723f4cb2dfa4922 PVC to cluster: PersistentVolumeClaim "storage-workspace8723f4cb2dfa4922" is invalid: spec.resources[storage]: Invalid value: "0": must be greater than zero
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:
Fixdevfile#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 <aobuchow@redhat.com>
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
Fixdevfile#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 <aobuchow@redhat.com>
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: