Set default spec dirs at config level

This change sets the default CDI spec dirs at a config level instead
of when a CDI runtime modifier is constructed. This makes this setting
consistent with other options such as the nvidia-ctk path.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2023-06-22 14:48:22 +02:00
parent 2c5761d32e
commit e2f8d2a15f
3 changed files with 13 additions and 6 deletions

View File

@@ -151,6 +151,7 @@ func getDefault() (*Config, error) {
CDI: cdiModeConfig{
DefaultKind: "nvidia.com/gpu",
AnnotationPrefixes: []string{cdi.AnnotationPrefix},
SpecDirs: cdi.DefaultSpecDirs,
},
},
},