Skip to content

Commit 3a5db31

Browse files
committed
fix: empty default snapshotter config for containerd namesapce default snapshotter label
Signed-off-by: Weidong Sun <[email protected]>
1 parent f57f872 commit 3a5db31

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/nerdctl/main_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"errors"
2121
"testing"
2222

23-
"github.com/containerd/containerd/v2/defaults"
2423
"github.com/containerd/nerdctl/mod/tigron/expect"
2524
"github.com/containerd/nerdctl/mod/tigron/require"
2625
"github.com/containerd/nerdctl/mod/tigron/test"
@@ -91,7 +90,7 @@ func TestNerdctlConfig(t *testing.T) {
9190
{
9291
Description: "Default",
9392
Command: test.Command("info", "-f", "{{.Driver}}"),
94-
Expected: test.Expects(0, nil, expect.Equals(defaults.DefaultSnapshotter+"\n")),
93+
Expected: test.Expects(0, nil, expect.Equals(""+"\n")),
9594
},
9695
{
9796
Description: "TOML > Default",

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func New() *Config {
5151
DebugFull: false,
5252
Address: defaults.DefaultAddress,
5353
Namespace: namespaces.Default,
54-
Snapshotter: defaults.DefaultSnapshotter,
54+
Snapshotter: "",
5555
CNIPath: ncdefaults.CNIPath(),
5656
CNINetConfPath: ncdefaults.CNINetConfPath(),
5757
DataRoot: ncdefaults.DataRoot(),

0 commit comments

Comments
 (0)