From acacd96494ded2cedf399d03f94aa196cf609f33 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 5 Feb 2024 23:42:58 +0100 Subject: [PATCH] Make NewSpecModifier public Signed-off-by: Evan Lezar --- internal/runtime/runtime_factory.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/runtime/runtime_factory.go b/internal/runtime/runtime_factory.go index 560da8aa0..6e9dbd211 100644 --- a/internal/runtime/runtime_factory.go +++ b/internal/runtime/runtime_factory.go @@ -52,7 +52,7 @@ func newNVIDIAContainerRuntime(logger logger.Interface, cfg *config.Config, argv return nil, err } - specModifier, err := newSpecModifier(logger, cfg, image) + specModifier, err := NewSpecModifier(logger, cfg, image) if err != nil { return nil, fmt.Errorf("failed to construct OCI spec modifier: %v", err) } @@ -68,8 +68,8 @@ func newNVIDIAContainerRuntime(logger logger.Interface, cfg *config.Config, argv return r, nil } -// newSpecModifier is a factory method that creates constructs an OCI spec modifer based on the provided config. -func newSpecModifier(logger logger.Interface, cfg *config.Config, image image.CUDA) (oci.SpecModifier, error) { +// NewSpecModifier is a factory method that creates constructs an OCI spec modifer based on the provided config. +func NewSpecModifier(logger logger.Interface, cfg *config.Config, image image.CUDA) (oci.SpecModifier, error) { mode := info.ResolveAutoMode(logger, cfg.NVIDIAContainerRuntimeConfig.Mode, image) modeModifier, err := newModeModifier(logger, mode, cfg, image) if err != nil {