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

Fix handling of 'podman pod create --share=...' #620

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

LewisGaul
Copy link
Collaborator

Previously treated Pod.create(share=[]) the same as not passing the share arg (not passing it to podman), but the podman default is to share uts, ipc and net namespaces. This means there's no way to specify that no namespaces should be shared.

In addition, podman expects this list of namespaces to be passed as a single comma-separated arg, e.g. --share uts,ipc, not in the form --share uts --share ipc (only the last is taken in this case). This means there's another bug where the use of the internal Command.add_args_iterable() helper method meant only one shared namespace could be specified.

It seems possible there could be other related bugs to do with the format of lists on the CLI...

@LewisGaul LewisGaul merged commit 338feb5 into gabrieldemarmiesse:master Aug 6, 2024
38 checks passed
@LewisGaul LewisGaul deleted the pod-share-arg branch August 6, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant