Uh oh!
There was an error while loading. Please reload this page.
feat: 'one PVC per-workspace' storage class - #818
Conversation
Hi @AObuchow. Thanks for your PR. I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Uh oh!
There was an error while loading. Please reload this page.
amisevsk
left a comment
There was a problem hiding this comment.
First pass at review -- generally looks good!
I'll get around to deeper review and testing later.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
8810b3f to
54e9f04CompareUh oh!
There was an error while loading. Please reload this page.
53c8e9b to
51e660bCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
51e660b to
ba4c27bCompareUh oh!
There was an error while loading. Please reload this page.
ba4c27b to
b2ee4e4CompareUh oh!
There was an error while loading. Please reload this page.
b2ee4e4 to
8d65602CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
8d65602 to
dd4bacaCompareAObuchow
commented
Apr 20, 2022
Awesome, thank you so much for the help & reviews @amisevsk 😁 |
amisevsk
commented
Apr 20, 2022
Well done 👍 |
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| func PerWorkspacePVCName(workspaceId string) string { | ||
| return fmt.Sprintf("storage-%s", workspaceId) |
There was a problem hiding this comment.
| returnfmt.Sprintf("storage-%s", workspaceId) | |
| returnfmt.Sprintf("claim-%s", workspaceId) |
| // TODO: Determine the storage size that is needed by iterating through workspace volumes, | ||
| // adding the sizes specified and figuring out overrides/defaults |
There was a problem hiding this comment.
This TODO is planned to be addressed as part of #740, right?
There was a problem hiding this comment.
Correct, or at the least, it might end up being a separate but related issue
dd4baca to
15b6705CompareFixdevfile#792. Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
15b6705 to
7b89ee5Compareamisevsk
commented
Apr 25, 2022
/test v8-devworkspace-operator-e2e, v8-che-happy-path |
AObuchow
commented
Apr 25, 2022
/retest |
@AObuchow: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
ibuziuk
commented
Apr 26, 2022
/retest |
ibuziuk
commented
Apr 26, 2022
I believe we can merge with the failed test |
amisevsk
left a comment
There was a problem hiding this comment.
We generally treat happy path as optional; the QE folks have had their plate full with other projects and its been unhealthy for a while now.
👍 to merge
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amisevsk, AObuchow, ibuziuk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
amisevsk
commented
Apr 26, 2022
/retest |
@AObuchow: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
What does this PR do?
This PR adds a new storage class called 'perWorkspace'. When in use in the devfile, every workspace gets its own PVC.
What issues does this PR fix or reference?
Fix#792
Is it tested? How?
In order to enable the 'perWorkspace' storage class, the
controller.devfile.io/storage-typedevfile attribute must be set toper-workspace.Eg.
Manual testing:
make run)kubectl apply -f ./samples/theia-next_per-workspaceStorage.yaml -n $NAMESPACEstorage-[workspaceID]kubectl delete dw theia-next -n $NAMESPACEAutomated testing:
There is also a new test file,
pkg/provision/storage/perWorkspaceStorage_test.go.It is based off of
pkg/provision/storage/CommonStorage_test.gowith slight adaptions. It also ensures that the owner reference is set for the perWorkspace PVC, which is required for automatic PVC deletion with cluster garbage collection.PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-pathto trigger)v8-devworkspace-operator-e2e: DevWorkspace e2e testv8-che-happy-path: Happy path for verification integration with Che