Skip to content

Commit a083b66

Browse files
committed
Set default differ for the default unpack config of transfer service
Signed-off-by: Henry Wang <[email protected]>
1 parent b22a302 commit a083b66

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

defaults/defaults_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ const (
3333
// DefaultStateDir is the default location used by containerd to store
3434
// transient data
3535
DefaultStateDir = "/run/containerd"
36+
// DefaultDiffer will set the default differ for the platform.
37+
DefaultDiffer = "walking"
3638
)

defaults/defaults_unix_nolinux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ const (
3333
// DefaultStateDir is the default location used by containerd to store
3434
// transient data
3535
DefaultStateDir = "/var/run/containerd"
36+
// DefaultDiffer will set the default differ for the platform.
37+
DefaultDiffer = "walking"
3638
)

plugins/transfer/plugin_defaults_other.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func defaultUnpackConfig() []unpackConfiguration {
2828
{
2929
Platform: platforms.Format(platforms.DefaultSpec()),
3030
Snapshotter: defaults.DefaultSnapshotter,
31+
Differ: defaults.DefaultDiffer,
3132
},
3233
}
3334
}

0 commit comments

Comments
 (0)