Add /var/run/cdi as a default cdi spec dir in config#2462
Conversation
Fixes: containers#2460 Signed-off-by: Somer Hayter <git@somer.cc>
Reviewer's GuideThis PR adds "/var/run/cdi" to the default CDI spec directories by updating the default constant, adjusting tests, and aligning documentation and sample configuration files accordingly. Class diagram for updated default CDI spec directoriesclassDiagram
class Config {
+[]string DefaultCdiSpecDirs
}
Config : DefaultCdiSpecDirs = ["/etc/cdi", "/var/run/cdi"]
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Luap99
left a comment
There was a problem hiding this comment.
LGTM. I don't think we need/want a test to compare against the upstream list. If new locations are added we can wait for actual users requesting them and/or manually check for such updates.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, Luap99, remos, sourcery-ai[bot] The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes: #2460 by adding
/var/run/cdiexplicitly as an additional default CDI spec directoryI haven't added a test to compare the default dirs to what's defined in
container-device-interface/pkgs/cdi, since that would potentially block dependency updates in the future, though I do wonder if that might be desirable, to catch + allow updating the default and documentation? Though I guess might also just be a choreI also haven't added any additional tests, and just updated what was already present in pkg/config/config_local_test.go but I'm happy to add + do any additional testing if required/desired, thanks!
Summary by Sourcery
Include
/var/run/cdias a default CDI spec directory and propagate the change through configuration defaults, tests, and documentation.Enhancements:
Documentation:
containers.conffiles to include/var/run/cdiincdi_spec_dirsTests: