-
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
remote,API: fix implementation of build with --userns=auto
for API and remote use-cases.
#15477
remote,API: fix implementation of build with --userns=auto
for API and remote use-cases.
#15477
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc 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 |
35bd2da
to
dbac6d7
Compare
Cirrus looks down i can't see the logs, its just showing |
dbac6d7
to
57a7fad
Compare
All the tests pass except |
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
just one question on the test
@@ -101,6 +101,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { | |||
ForceRm bool `schema:"forcerm"` | |||
From string `schema:"from"` | |||
HTTPProxy bool `schema:"httpproxy"` | |||
IDMappingOptions string `schema:"idmappingoptions"` |
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.
Don't the API docs need to be updated to include this?
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.
Lot of build options are already hidden from swagger and only common ones are there, I think this is too complex to expose since it contains nested fields and might not be used too frequently by regular users. But if everybody agrees we can expose this, however there are other options which i think deserve more priority than this if we want to expose hidden options.
Again I am cool if everybody agrees that we should expose this.
@vrothberg @giuseppe @mheon @containers/podman-maintainers PTAL i have addressed the comments, let me know if anyone of them is a blocker. |
630b8b2
to
f155bbf
Compare
`podman-remote` and Libpod API does not supports build with `--userns=auto` since `IDMappingOptions` were not implemented for API and bindings, following PR implements passing `IDMappingOptions` via bindings to API. Closes: containers#15476 Signed-off-by: Aditya R <[email protected]>
f155bbf
to
e00272c
Compare
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
/hold
/hold cancel |
podman-remote
and Libpod API does not supports build with--userns=auto
sinceIDMappingOptions
were not implemented for APIand bindings, following PR implements passing
IDMappingOptions
viabindings to API.
Closes: #15476