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

Ephemeral volumes #324

Merged
merged 2 commits into from Feb 12, 2021
Merged

Ephemeral volumes #324

merged 2 commits into from Feb 12, 2021

Conversation

amisevsk
Copy link
Contributor

What does this PR do?

This PR is half of #319 (support for ephemeral/emptyDir volume components). These components provide a way to share storage between components -- e.g. sharing a .m2 volume between a builder container and a Java language server sidecar.

Compared to #319, I've renamed the field from persistent to ephemeral (following @davidfestal's suggestion) to support having false as the default value; otherwise, we're generally required to use a boolean pointer, which is a hassle to work with.

What issues does this PR fix or reference?

Fixes 1/2 of #310

Is your PR tested? Consider putting some instruction how to test your changes

N/A, spec change.

Add field "ephemeral" to Volume components to specify that this volume
should not be persisted. This enables creating devfiles that share
storage between components without having to store data in a persistent
volume.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Copy link
Contributor

@elsony elsony left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: amisevsk, davidfestal, elsony, kadel, sleshchenko
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

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

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.

None yet

7 participants