-
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
Support DeviceCgroupRules to actually get added. #10895
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 |
a095484
to
d8f5f51
Compare
Lots of Red test unhappiness. |
pkg/specgen/specgen.go
Outdated
@@ -239,6 +239,9 @@ type ContainerStorageConfig struct { | |||
// Devices are devices that will be added to the container. | |||
// Optional. | |||
Devices []spec.LinuxDevice `json:"devices,omitempty"` | |||
// DeviceCGroupRule are device cgroup rules that allow containers | |||
// to use additional types of devices. | |||
DeviceCGroupRule []string `json:"device_cgroup_rule,omitempty"` |
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.
Can we do the parsing on the frontend, so we can pass a struct here (including the type, path, and access permissions)?
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.
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.
Generally speaking, we try to parse in the frontend to the greatest extent possible, so the server does not have to do much validation of the contents of specgen.
Fixes: containers#10302 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
LGTM |
LGTM, just a general note: wondering if in the future we should look to combine all |
Fixes: #10302
Signed-off-by: Daniel J Walsh dwalsh@redhat.com