nvidia-container-toolkit/internal/edits
Evan Lezar 029a04c37d Use blank device hostPath if same as Path
The HostPath field was added in the v0.5.0 CDI specification.
The cdi package uses strict unmarshalling when loading specs
from file causing failures for unexpected fields.

Since the behaviour for HostPath == "" and HostPath == Path are
equivalent, we clear HostPath if it is equal to Path to ensure
compatibility with the widest range of specs.

This allows, for example, a v0.4.0 spec to be generated as required.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-12-02 10:01:22 +01:00
..
device_test.go Use blank device hostPath if same as Path 2022-12-02 10:01:22 +01:00
device.go Use blank device hostPath if same as Path 2022-12-02 10:01:22 +01:00
edits.go Use device host path to determine properties 2022-07-07 12:03:23 +02:00
hook.go Add csv discovery mode to experimental runtime 2022-04-07 10:45:19 +02:00
mount.go Add Relative function to Locator interface 2022-07-01 16:23:50 +02:00