-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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/Container: Add GroupAdd option #22601
Quadlet/Container: Add GroupAdd option #22601
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 PR
The test case you've added is not executed. You need to add an entry here: https://github.com/containers/podman/blob/main/test/e2e/quadlet_test.go#L786 to pick it up
Ephemeral COPR build failed. @containers/packit-build please check. |
Thanks for being quick to review it proactively help me out!
Tried to do that 🤞 |
0e6cf0e
to
0b7cb2d
Compare
Please squash all commits into one (it will also solve the "Build Each Commit" test |
ac41fa5
to
035dfdb
Compare
035dfdb
to
ae56488
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xkr47, ygalblum 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 |
LGTM |
Ah, right, forgot to mention, I ~copypasted the description from the podman-run manpage, so it might not be a perfect match stylewise. Let me know if you want me to work on that. |
@@ -440,6 +441,18 @@ This key can be listed multiple times. | |||
The (numeric) GID to run as inside the container. This does not need to match the GID on the host, | |||
which can be modified with `UsersNS`, but if that is not specified, this GID is also used on the host. | |||
|
|||
### `GroupAdd=` |
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 avoid duplication, the Quadlet man page usually does not provide the entire documentation of the field. Instead, it states the equivalent argument.
So, I guess here you can keep the first sentence, maybe also the note about keep-groups
and conclude with "Equivalent to the Podman --group-add
option"
Thanks for pointing this out. I've added a comment about it |
Pushed fixes and a typo in the mapping table. Let me know if you want me to squash the commits after the review. Btw I guess it is customary not to do validation of the arguments at this stage but let podman report any errors, should there be any..? |
Yes, Quadlet leaves the argument validation to Podman. Please squash all commits |
Co-authored-by: Ygal Blum <ygal.blum@gmail.com> Signed-off-by: Jonas Berlin <xkr47@outerspace.dyndns.org>
573d6f4
to
6d1098f
Compare
/lgtm |
Does this PR introduce a user-facing change?
I have not written anything in Go before and did not manage to run the test I added locally.