-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add support for ephemeral
storageClass
#493
Conversation
ephemeral
storageClass
"github.com/devfile/devworkspace-operator/pkg/library/container" | ||
) | ||
|
||
// The CommonStorageProvisioner provisions one PVC per namespace and configures all volumes in a workspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops :D
My copy-paste is discovered
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amisevsk, JPinkney, sleshchenko The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add new storageclass 'ephemeral' to support creating workspaces where all volumes are emptyDir. Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
9f80c7c
to
dc70ba8
Compare
New changes are detected. LGTM label has been removed. |
/test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path |
/test v7-devworkspace-happy-path |
What does this PR do?
Adds support for the
ephemeral
storageClass (use emptyDir for all DevWorkspace volumes). This is useful (at least) for testing non-storage related usecases of DWO, as it avoids the need for a cleanup pod on every DevWorkspace.Currently, the implementation is very simple and does no validation (e.g. that all container components reference existing volumes).
What issues does this PR fix or reference?
No issue created AFAIK but was very useful while testing #492
Is it tested? How?
Set
.spec.template.attributes.controller.devfile.io/storage-type: "ephemeral"
and start workspace.PR Checklist
/test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path
to trigger)v7-devworkspaces-operator-e2e
: DevWorkspace e2e testv7-devworkspace-happy-path
: DevWorkspace e2e test