mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
029a04c37d
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> |
||
---|---|---|
.. | ||
config | ||
cuda | ||
discover | ||
edits | ||
info | ||
ldcache | ||
lookup | ||
modifier | ||
nvcaps | ||
oci | ||
requirements | ||
runtime | ||
test |