mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-03-31 15:47:13 +00:00
Export GetDefaultRuntimeConfig
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
7ec3cd0b5b
commit
2563c1b87c
@ -95,7 +95,7 @@ func getDefaultConfig() *Config {
|
|||||||
c := Config{
|
c := Config{
|
||||||
NVIDIAContainerCLIConfig: *getDefaultContainerCLIConfig(),
|
NVIDIAContainerCLIConfig: *getDefaultContainerCLIConfig(),
|
||||||
NVIDIACTKConfig: *getDefaultCTKConfig(),
|
NVIDIACTKConfig: *getDefaultCTKConfig(),
|
||||||
NVIDIAContainerRuntimeConfig: *getDefaultRuntimeConfig(),
|
NVIDIAContainerRuntimeConfig: *GetDefaultRuntimeConfig(),
|
||||||
}
|
}
|
||||||
|
|
||||||
return &c
|
return &c
|
||||||
|
@ -29,7 +29,7 @@ type RuntimeConfig struct {
|
|||||||
|
|
||||||
// getRuntimeConfigFrom reads the nvidia container runtime config from the specified toml Tree.
|
// getRuntimeConfigFrom reads the nvidia container runtime config from the specified toml Tree.
|
||||||
func getRuntimeConfigFrom(toml *toml.Tree) *RuntimeConfig {
|
func getRuntimeConfigFrom(toml *toml.Tree) *RuntimeConfig {
|
||||||
cfg := getDefaultRuntimeConfig()
|
cfg := GetDefaultRuntimeConfig()
|
||||||
|
|
||||||
if toml == nil {
|
if toml == nil {
|
||||||
return cfg
|
return cfg
|
||||||
@ -42,8 +42,8 @@ func getRuntimeConfigFrom(toml *toml.Tree) *RuntimeConfig {
|
|||||||
return cfg
|
return cfg
|
||||||
}
|
}
|
||||||
|
|
||||||
// getDefaultRuntimeConfig defines the default values for the config
|
// GetDefaultRuntimeConfig defines the default values for the config
|
||||||
func getDefaultRuntimeConfig() *RuntimeConfig {
|
func GetDefaultRuntimeConfig() *RuntimeConfig {
|
||||||
c := RuntimeConfig{
|
c := RuntimeConfig{
|
||||||
DebugFilePath: "/dev/null",
|
DebugFilePath: "/dev/null",
|
||||||
Experimental: false,
|
Experimental: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user