Skip to content

Commit

Permalink
Make NewSpecModifier public
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Feb 5, 2024
1 parent 1761b84 commit acacd96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/runtime/runtime_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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 {
Expand Down

0 comments on commit acacd96

Please sign in to comment.