nvidia-container-toolkit/internal/config
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
..
image Refactor handling of DriverCapabilities 2023-08-14 10:40:42 +02:00
cli.go Use internal/config structs in hook 2023-08-14 10:40:41 +02:00
config_test.go Add config.Toml type to handle config files 2023-08-14 11:32:54 +02:00
config.go Add config.Toml type to handle config files 2023-08-14 11:32:54 +02:00
hook.go Export config.GetDefault function 2023-08-14 10:35:33 +02:00
runtime.go Export config.GetDefault function 2023-08-14 10:35:33 +02:00
toml_test.go Add config.Toml type to handle config files 2023-08-14 11:32:54 +02:00
toml.go Add required option to new toml config 2023-09-07 11:56:01 +02:00
toolkit-cli.go