Set default differ for the default unpack config of transfer service
Signed-off-by: Henry Wang <henwang@amazon.com> (cherry picked from commit a083b669c9412eef55ee103fe2bb1dec7c6178bc)
This commit is contained in:
		| @@ -21,4 +21,6 @@ const ( | |||||||
| 	// This will be based on the client compilation target, so take that into | 	// This will be based on the client compilation target, so take that into | ||||||
| 	// account when choosing this value. | 	// account when choosing this value. | ||||||
| 	DefaultSnapshotter = "overlayfs" | 	DefaultSnapshotter = "overlayfs" | ||||||
|  | 	// DefaultDiffer will set the default differ for the platform. | ||||||
|  | 	DefaultDiffer = "walking" | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -23,4 +23,6 @@ const ( | |||||||
| 	// This will be based on the client compilation target, so take that into | 	// This will be based on the client compilation target, so take that into | ||||||
| 	// account when choosing this value. | 	// account when choosing this value. | ||||||
| 	DefaultSnapshotter = "native" | 	DefaultSnapshotter = "native" | ||||||
|  | 	// DefaultDiffer will set the default differ for the platform. | ||||||
|  | 	DefaultDiffer = "walking" | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -28,6 +28,7 @@ func defaultUnpackConfig() []unpackConfiguration { | |||||||
| 		{ | 		{ | ||||||
| 			Platform:    platforms.Format(platforms.DefaultSpec()), | 			Platform:    platforms.Format(platforms.DefaultSpec()), | ||||||
| 			Snapshotter: defaults.DefaultSnapshotter, | 			Snapshotter: defaults.DefaultSnapshotter, | ||||||
|  | 			Differ:      defaults.DefaultDiffer, | ||||||
| 		}, | 		}, | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Henry Wang
					Henry Wang