-
Notifications
You must be signed in to change notification settings - Fork 107
feat: expose *ns
keys to consumers
#525
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
Conversation
feat: expose *ns keys to consumers, see: containers#525
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.
hey, @josegomezr thanks. the PR looks good to me. did you think of any tests to add? I can help you with it if you want to work on it.
also, please sign your commit. that would also retrigger the automation which had a flaky test and it should then pass
Hmm, I took the lint suggestions from |
`cgroupns`, `ipcns`, `pidns`, `userns`, `utsns` now support setting the `value` attribute. This allows to mimic the behavior of `--userns`[0] cli arg via this API. [0]: https://docs.podman.io/en/stable/markdown/podman-create.1.html#userns-mode Signed-off-by: Jose D. Gomez R <[email protected]>
Sorry got late to the party. Where's the suggestion from black? we migrated recently to ruff (which uses their black implementation) so it might be a leftover from the past workflows |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inknos, josegomezr 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 |
cgroupns
,ipcns
,pidns
,userns
,utsns
now support setting thevalue
attribute.This allows to mimic the behavior of
--userns
0 cli arg via this API.Maybe related to #499
We spotted this missing behavior when using
salt-podman-formula
, we realized that setting:Was not bringing the
.container.userns_mode.value
to the actual invocation. The patch allows consumers to send a dict with the options, there's potential to do string parsing (to mimic 1:1 the parsing that the cli does) if desired.