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

Add support for ephemeral storageClass #493

Merged
merged 4 commits into from
Jul 16, 2021

Conversation

amisevsk
Copy link
Collaborator

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

  • E2E tests pass (when PR is ready, comment /test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path to trigger)
    • v7-devworkspaces-operator-e2e: DevWorkspace e2e test
    • v7-devworkspace-happy-path: DevWorkspace e2e test

@openshift-ci openshift-ci bot requested a review from JPinkney July 15, 2021 04:52
@amisevsk amisevsk changed the title Ephemeral storageclass Add support for ephemeral storageClass Jul 15, 2021
"github.com/devfile/devworkspace-operator/pkg/library/container"
)

// The CommonStorageProvisioner provisions one PVC per namespace and configures all volumes in a workspace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update this

Copy link
Collaborator Author

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

@openshift-ci
Copy link

openshift-ci bot commented Jul 15, 2021

[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:
  • OWNERS [JPinkney,amisevsk,sleshchenko]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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>
@openshift-ci
Copy link

openshift-ci bot commented Jul 15, 2021

New changes are detected. LGTM label has been removed.

@amisevsk
Copy link
Collaborator Author

/test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path

@amisevsk
Copy link
Collaborator Author

/test v7-devworkspace-happy-path

@amisevsk amisevsk merged commit e507bed into devfile:main Jul 16, 2021
@amisevsk amisevsk deleted the ephemeral-storageclass branch July 16, 2021 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants