mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Add sorter to simplifying transformer
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -29,7 +29,11 @@ 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 {
|
||||
return &simplify{}
|
||||
return Merge(
|
||||
dedupe{},
|
||||
simplify{},
|
||||
sorter{},
|
||||
)
|
||||
}
|
||||
|
||||
// Transform simplifies the supplied spec.
|
||||
|
||||
Reference in New Issue
Block a user