-
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
Support annotations from containers.conf #9284
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan 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 |
This is important for a blog I am writing on sharing supplemental groups into a container. |
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
pkg/specgen/generate/container.go
Outdated
k := split[0] | ||
v := "" | ||
if len(split) == 2 { | ||
v = split[0] |
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.
v = split[0] | |
v = split[1] |
wrong index
Needs fix from @Luap99 then LGTM. Concerned as to why tests are green despite the logic error. |
The =1 is not important to crun, if crun sees the value, it will allow the supplemental groups in. |
But this isn't the only important annotation that exists, and the test did not catch that the code was incorrect |
Good point now, the test looks for the value 1. |
I also added another PR here to fix a race condition in #9286. |
LGTM once things go green |
Currently podman does not use the annotations specified in the containers.conf. This PR fixes this. Signed-off-by: Daniel J Walsh <[email protected]>
Service needs to be restarted in order to read the CONTAINERS_CONF file. Not resetting this can lead to lots of flakes, since the test will use whatever the host system has to be set in it's containers.conf. Fixes: containers#9286 Signed-off-by: Daniel J Walsh <[email protected]>
LGTM |
Currently podman does not use the annotations specified in the
containers.conf. This PR fixes this.
Signed-off-by: Daniel J Walsh [email protected]