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 volumes-from, image volumes, init #6000

Merged
merged 2 commits into from
Apr 27, 2020

Conversation

mheon
Copy link
Member

@mheon mheon commented Apr 27, 2020

This should complete Podmanv2's support for volume-related flags. Most code was sourced from the old pkg/spec implementation with modifications to account for the split between frontend flags (volume, mount, tmpfs) and the backend flags implemented here.

Also enables tests for podman run with volumes

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 27, 2020
@mheon mheon force-pushed the volume_backend_flags branch from 81dbd24 to 61b2a8f Compare April 27, 2020 14:55
@mheon
Copy link
Member Author

mheon commented Apr 27, 2020

Hold for a bit. Our entrypoint handling is broken.

@mheon
Copy link
Member Author

mheon commented Apr 27, 2020

Apparently run_volume_test also has a metric ton of podman volume create tests in it, which is lovely. Going to have to disable for now.

@mheon mheon force-pushed the volume_backend_flags branch from 340cca6 to 97f315a Compare April 27, 2020 17:11
@mheon
Copy link
Member Author

mheon commented Apr 27, 2020

Tests should go green now

mheon added 2 commits April 27, 2020 13:13
This should complete Podmanv2's support for volume-related flags.
Most code was sourced from the old pkg/spec implementation with
modifications to account for the split between frontend flags
(volume, mount, tmpfs) and the backend flags implemented here.

Also enables tests for podman run with volumes

Signed-off-by: Matthew Heon <[email protected]>
We should not be overwriting the Specgen's Command and Entrypoint
when building the final command to pass in the OCI spec. Both of
these will be provided to Libpod for use in `podman inspect` and
committing containers, and both must be set to the user's input,
not overwritten by the image if unset.

Fix this by moving command generation into OCI spec generation
and not modifying the SpecGenerator when we do so.

Signed-off-by: Matthew Heon <[email protected]>
@mheon mheon force-pushed the volume_backend_flags branch from 97f315a to 67ec4e1 Compare April 27, 2020 17:13
@rhatdan
Copy link
Member

rhatdan commented Apr 27, 2020

LGTM

@baude
Copy link
Member

baude commented Apr 27, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 27, 2020
@openshift-merge-robot openshift-merge-robot merged commit f6f7172 into containers:master Apr 27, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants