From 2563c1b87c3b37a13726ac1e55723a1efd525bb8 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 6 Apr 2022 16:04:38 +0200 Subject: [PATCH] Export GetDefaultRuntimeConfig Signed-off-by: Evan Lezar --- internal/config/config.go | 2 +- internal/config/runtime.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 9f4f16f3..648dee5e 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -95,7 +95,7 @@ func getDefaultConfig() *Config { c := Config{ NVIDIAContainerCLIConfig: *getDefaultContainerCLIConfig(), NVIDIACTKConfig: *getDefaultCTKConfig(), - NVIDIAContainerRuntimeConfig: *getDefaultRuntimeConfig(), + NVIDIAContainerRuntimeConfig: *GetDefaultRuntimeConfig(), } return &c diff --git a/internal/config/runtime.go b/internal/config/runtime.go index 9ae8de48..7486e9e9 100644 --- a/internal/config/runtime.go +++ b/internal/config/runtime.go @@ -29,7 +29,7 @@ type RuntimeConfig struct { // getRuntimeConfigFrom reads the nvidia container runtime config from the specified toml Tree. func getRuntimeConfigFrom(toml *toml.Tree) *RuntimeConfig { - cfg := getDefaultRuntimeConfig() + cfg := GetDefaultRuntimeConfig() if toml == nil { return cfg @@ -42,8 +42,8 @@ func getRuntimeConfigFrom(toml *toml.Tree) *RuntimeConfig { return cfg } -// getDefaultRuntimeConfig defines the default values for the config -func getDefaultRuntimeConfig() *RuntimeConfig { +// GetDefaultRuntimeConfig defines the default values for the config +func GetDefaultRuntimeConfig() *RuntimeConfig { c := RuntimeConfig{ DebugFilePath: "/dev/null", Experimental: false,