mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Generate a simplified CDI spec by default
As simplified CDI spec has no duplicate entities in any single set of container edits. Furthermore, contianer edits defined at a spec-level are not included in the container edits for a device. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -28,8 +28,8 @@ var _ Transformer = (*simplify)(nil)
|
||||
|
||||
// NewSimplifier creates a simplifier transformer.
|
||||
// This transoformer ensures that entities in the spec are deduplicated and that common edits are removed from device-specific edits.
|
||||
func NewSimplifier() (Transformer, error) {
|
||||
return &simplify{}, nil
|
||||
func NewSimplifier() Transformer {
|
||||
return &simplify{}
|
||||
}
|
||||
|
||||
// Transform simplifies the supplied spec.
|
||||
|
||||
Reference in New Issue
Block a user