File tree Expand file tree Collapse file tree 3 files changed +0
-29
lines changed
cmd/nvidia-container-runtime-hook Expand file tree Collapse file tree 3 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,6 @@ const (
2020// HookConfig : options for the nvidia-container-runtime-hook.
2121type HookConfig config.Config
2222
23- func getDefaultHookConfig () (HookConfig , error ) {
24- defaultCfg , err := config .GetDefault ()
25- if err != nil {
26- return HookConfig {}, err
27- }
28-
29- return * (* HookConfig )(defaultCfg ), nil
30- }
31-
3223// loadConfig loads the required paths for the hook config.
3324func loadConfig () (* config.Config , error ) {
3425 var configPaths []string
Original file line number Diff line number Diff line change @@ -24,13 +24,3 @@ type RuntimeHookConfig struct {
2424 // SkipModeDetection disables the mode check for the runtime hook.
2525 SkipModeDetection bool `toml:"skip-mode-detection"`
2626}
27-
28- // GetDefaultRuntimeHookConfig defines the default values for the config
29- func GetDefaultRuntimeHookConfig () (* RuntimeHookConfig , error ) {
30- cfg , err := GetDefault ()
31- if err != nil {
32- return nil , err
33- }
34-
35- return & cfg .NVIDIAContainerRuntimeHookConfig , nil
36- }
Original file line number Diff line number Diff line change @@ -45,13 +45,3 @@ type cdiModeConfig struct {
4545type csvModeConfig struct {
4646 MountSpecPath string `toml:"mount-spec-path"`
4747}
48-
49- // GetDefaultRuntimeConfig defines the default values for the config
50- func GetDefaultRuntimeConfig () (* RuntimeConfig , error ) {
51- cfg , err := GetDefault ()
52- if err != nil {
53- return nil , err
54- }
55-
56- return & cfg .NVIDIAContainerRuntimeConfig , nil
57- }
You can’t perform that action at this time.
0 commit comments