nvidia-container-toolkit/cmd/nvidia-container-runtime-hook
Evan Lezar 4ec9bd751e Add required option to new toml config
This change adds a "required" option to the new toml config
that controls whether a default config is returned or not.
This is useful from the NVIDIA Container Runtime Hook, where
/run/driver/nvidia/etc/nvidia-container-runtime/config.toml
is checked before the standard path.

This fixes a bug where the default config was always applied
when this config was not used.

See https://github.com/NVIDIA/nvidia-container-toolkit/issues/106

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-09-07 11:56:01 +02:00
..
capabilities.go Refactor handling of DriverCapabilities 2023-08-14 10:40:42 +02:00
container_config_test.go Refactor handling of DriverCapabilities 2023-08-14 10:40:42 +02:00
container_config.go Refactor handling of DriverCapabilities 2023-08-14 10:40:42 +02:00
hook_config_test.go Refactor handling of DriverCapabilities 2023-08-14 10:40:42 +02:00
hook_config.go Add required option to new toml config 2023-09-07 11:56:01 +02:00
hook_test.go
main.go Use internal/config structs in hook 2023-08-14 10:40:41 +02:00