mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Use include-persistenced-socket feature for CDI mode
This change ensures that the internal CDI representation includes the persistenced socket if the include-persistenced-socket feature flag is enabled. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -155,3 +155,14 @@ func WithLibrarySearchPaths(paths []string) Option {
|
||||
o.librarySearchPaths = paths
|
||||
}
|
||||
}
|
||||
|
||||
// WithOptInFeature sets a specific opt-in feature.
|
||||
// Note that previous opt-in-features are not removed.
|
||||
func WithOptInFeature(feature string, enabled bool) Option {
|
||||
return func(n *nvcdilib) {
|
||||
if n.optInFeatures == nil {
|
||||
n.optInFeatures = make(map[string]bool)
|
||||
}
|
||||
n.optInFeatures[feature] = enabled
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user