[WIP] Add manifest subcommand#5266
Conversation
|
Hi @sjug. 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. DetailsInstructions 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sjug The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
We can't use the Buildah store methods directly as they won't respect libpod.conf; will probably need to move some of this into pkg/image |
|
@sjug First you need to sign your PRs to make the tests run. |
b536e40 to
3f39a0c
Compare
Signed-off-by: Sebastian Jug <seb@stianj.ug>
Signed-off-by: Sebastian Jug <seb@stianj.ug>
Signed-off-by: Sebastian Jug <seb@stianj.ug>
|
I've kept the second commit to show how I replaced some key different functions from buildah to see if that's okay. Also the third commit is adding in the buildah/manifest deps. I'm not sure why I'm failing gating? |
| store := runtime.GetStore() | ||
| systemContext := runtime.SystemContext() | ||
|
|
||
| _, listImage, err := util.FindImage(store, "", systemContext, listImageSpec) |
There was a problem hiding this comment.
we typically would put this content and below into the adapter layer. I think given your not familar with that and we are actively working on it, I'm OK with ignoring that for now and allowing us to clean this up.
| store := runtime.GetStore() | ||
| systemContext := runtime.SystemContext() | ||
|
|
||
| _, listImage, err := util.FindImage(store, "", systemContext, listImageSpec) |
There was a problem hiding this comment.
we typically use something like runtime.LookupImage (or something close to that.)
| @@ -0,0 +1,166 @@ | |||
| package main | |||
There was a problem hiding this comment.
this command will need to fenced off as a local-only command until we have apiv2 endpoints for this. maybe that should get done now? so that this is a slightly cleaner implementation?
There was a problem hiding this comment.
I prefer to defer the endpoints for manifest. We wanted to prevent libpod from importing buildah packages and I believe that's what we had to do.
|
needs man pages and bash completion additions to pass gating. |
| return errors.New("At least a list image and an image to add must be specified") | ||
| case 2: | ||
| listImageSpec = args[0] | ||
| if listImageSpec == "" { |
There was a problem hiding this comment.
I prefer leaving these checks to the libraries.
| @@ -0,0 +1,166 @@ | |||
| package main | |||
There was a problem hiding this comment.
I prefer to defer the endpoints for manifest. We wanted to prevent libpod from importing buildah packages and I believe that's what we had to do.
|
@vrothberg @sjug We are working on APIV2 for this first and setting up support for it in libpod. Once this happens we can work on the CLI for it. @baude Opened the first PR for APIV2 yesterday. |
|
☔ The latest upstream changes (presumably #5528) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@sjug: PR needs rebase. DetailsInstructions 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. |
|
A friendly reminder that this PR had no activity for 30 days. |
Working towards #713.
Requires #5253.
Took a swing at breaking out the manifests monolith from buildah.
Quite a bit different implementation of the commands compared to podman
GetRuntime()etc.How much did you want to bring over from buildah vs refactor?
Do we want to lift
getStore()from buildah to make it work as is?I would appreciate some suggestions.