From 84d9658c36c73ba4ae87471dd760ef3539b26c2b Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Tue, 1 Apr 2025 21:56:08 +0000 Subject: [PATCH] Set default differ for the default unpack config of transfer service Signed-off-by: Henry Wang (cherry picked from commit a083b669c9412eef55ee103fe2bb1dec7c6178bc) --- defaults/defaults_snapshotter_linux.go | 2 ++ defaults/defaults_snapshotter_unix.go | 2 ++ plugins/transfer/plugin_defaults_other.go | 1 + 3 files changed, 5 insertions(+) diff --git a/defaults/defaults_snapshotter_linux.go b/defaults/defaults_snapshotter_linux.go index ade194717..84f9f4af6 100644 --- a/defaults/defaults_snapshotter_linux.go +++ b/defaults/defaults_snapshotter_linux.go @@ -21,4 +21,6 @@ const ( // This will be based on the client compilation target, so take that into // account when choosing this value. DefaultSnapshotter = "overlayfs" + // DefaultDiffer will set the default differ for the platform. + DefaultDiffer = "walking" ) diff --git a/defaults/defaults_snapshotter_unix.go b/defaults/defaults_snapshotter_unix.go index fc8b081ff..328b5eae6 100644 --- a/defaults/defaults_snapshotter_unix.go +++ b/defaults/defaults_snapshotter_unix.go @@ -23,4 +23,6 @@ const ( // This will be based on the client compilation target, so take that into // account when choosing this value. DefaultSnapshotter = "native" + // DefaultDiffer will set the default differ for the platform. + DefaultDiffer = "walking" ) diff --git a/plugins/transfer/plugin_defaults_other.go b/plugins/transfer/plugin_defaults_other.go index 23b948eeb..90b0d2f5f 100644 --- a/plugins/transfer/plugin_defaults_other.go +++ b/plugins/transfer/plugin_defaults_other.go @@ -28,6 +28,7 @@ func defaultUnpackConfig() []unpackConfiguration { { Platform: platforms.Format(platforms.DefaultSpec()), Snapshotter: defaults.DefaultSnapshotter, + Differ: defaults.DefaultDiffer, }, } }