-
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
Quadlet: Add support for --sysctl #18785
Conversation
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.
Thanks for the contribution, please add a test for it. See #18788 for an example on how to add quadlet tests.
Also please squash the commits into one, thanks. |
|
||
For example: | ||
``` | ||
AddSysctl=net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.all.use_tempaddr=1 |
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.
Just checking, not comma separated?
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.
To my knowledge both is possible.
When using a comma separated list podman inspect
returns
--sysctl= AddSysctl=net.ipv6.conf.all.disable_ipv6=1,net.ipv6.conf.all.use_tempaddr=1
In contrast, using the space separated list leads to
sysctl=net.ipv6.conf.all.disable_ipv6=1
sysctl=net.ipv6.conf.all.use_tempaddr=1
I personally would prefer the latter, however the documentation can be changed if wanted.
Tests are unhappy. |
The linked PR has an |
As long as you make sure you have the correct --sysctl argument in there is should be fine. |
Code LGTM |
Sorry, forgot to change the alphabetical sorting on one occasion (supportedContainerKeys). I will fix that, as it's only the order of Supported keys this will be a minor change. However, the checks have to rerun. |
The Sysctl=name=value entry can be used to set --sysctl=name=value directly without the need to use PodmanArgs=--sysctl=name=value. Signed-off-by: Laurenz Kruty <[email protected]>
LGTM |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: LauKr, Luap99 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 |
Thanks everybody |
AddSysctl allows to set namespaced kernel parameters for containers.
Closes #18727.
Does this PR introduce a user-facing change?
Yes
Signed-off-by: Laurenz Kruty [email protected]