-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
APIv2: Add docker compatible volume endpoints #6736
APIv2: Add docker compatible volume endpoints #6736
Conversation
Hi @maybe-sybr. Thanks for your PR. I'm waiting for a containers 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. 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. |
Related to my question about compat endpoints for volumes at #6720 |
No CLA required, but all commits do need a Signoff. |
52012cc
to
b7dcce1
Compare
b7dcce1
to
aff1598
Compare
This changeset implements all of the v1.40 endpoints with a few support caveats noted in the commit message. The endpoints work fine when I hit them in a project I'm working on, but I'm not testing many of the edge cases. I'm leaving this as is for now, pending some input from y'all. I'll keep an eye on the PR for any feedback. |
aff1598
to
c6390e5
Compare
@maybe-sybr Let me get a quick handler for the dangling filter written, should be pretty easy |
@mheon I have a new changeset which uses your dangling filter and also excludes the libpod specific filters. I'll push a HEAD which merges in the current HEAD from #6756 and has that fixup commit for my change. This will obviously need a rebase/autosquash once your merge goes in, or a rebase/autosquash/removal of the merge commit if we want to merge this first and wait for |
6e060b8
to
9161a4c
Compare
Rebased on master, squashed down and I fixed up those swagger model types so they're capital cased/public. I think this will be good to go now. |
9161a4c
to
9c14018
Compare
7db3e98
to
257f99b
Compare
The swagger check in gating is complaining at me for changing some of the endpoint lines to match a change it suggested for one of them in a previous run. https://github.com/containers/libpod/pull/6736/checks?check_run_id=824743139 I would have assumed all of these should be either |
I reads like Swagger wants |
@vrothberg , check out these two checks and the diff between them:
The way I read that complaint was that initially I needed to change the word I think I understand what's happening through - swagger likely wants that word to be the parent of the endpoint being described on that line. So for the top level I'm going to make that change now that I have a handle on why it's telling me to do things. Will push a squashed and rebased change momentarily. |
257f99b
to
85b50a2
Compare
16436ae
to
6f927cc
Compare
This change implements docker compatibile endpoint for interacting with volumes. The code is mostly lifted from the `libpod` API handlers but decodes and constructs data using types defined in the docker API package. Some notable support caveats with the current implementation: * we don't return the nullable `Status` or `UsageData` keys when returning volume information for inspect and create endpoints * we don't support filters when pruning * we return a fixed `0` for the `SpaceReclaimed` key when pruning since we have no insight into how much space was freed from runtime Signed-off-by: Matt Brindley <[email protected]>
In response to input regarding the semantic difference for the `force` parameter for volume removal between Docker and us, this change ensures that we emulate the Dockr behaviour correctly when this parameter is specified. Signed-off-by: Matt Brindley <[email protected]>
6f927cc
to
3aa22cb
Compare
CI looks much happier on the unsquashed version of the diff I just re-pushed. LMK if any other changes need to be made prior to merge. |
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.
LGTM, thanks a lot for the great work, @maybe-sybr
/lgtm |
/hold cancel |
This is a WIP for a simple docker compatibility endpoint for volumes in APIv2. Happy to take any feedback on the approach or any admin I'd need to do (CLA?) since this is my first contrib to libpod.