From b7029cc3bce9179aac346603b3c3103c72e8327a Mon Sep 17 00:00:00 2001 From: Guangyu Xu Date: Thu, 18 Apr 2024 18:26:41 +0000 Subject: [PATCH] chore: modify config test Signed-off-by: Guangyu Xu --- config/config_test.go | 4 ++++ misc/snapshotter/config.toml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/config_test.go b/config/config_test.go index cd0c232387..37d7a65d26 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -31,6 +31,10 @@ func TestLoadSnapshotterTOMLConfig(t *testing.T) { EnableStargz: false, EnableReferrerDetect: false, }, + PrefetchControllerConfig: PrefetchControllerConfig{ + Enable: true, + PrefetchConfig: "http://localhost:1323/api/v1/prefetch/download", + }, CleanupOnClose: false, SystemControllerConfig: SystemControllerConfig{ Enable: true, diff --git a/misc/snapshotter/config.toml b/misc/snapshotter/config.toml index d5d625b358..145c9f39d4 100644 --- a/misc/snapshotter/config.toml +++ b/misc/snapshotter/config.toml @@ -10,7 +10,7 @@ daemon_mode = "dedicated" cleanup_on_close = false [prefetch] -enable = false +enable = true get_prefetch_endpoint = "http://localhost:1323/api/v1/prefetch/download" [system] @@ -136,4 +136,4 @@ max_concurrent_proc = 0 # - "image_block": generate a raw block disk image with tarfs for an image # - "layer_block_with_verity": generate a raw block disk image with tarfs for a layer with dm-verity info # - "image_block_with_verity": generate a raw block disk image with tarfs for an image with dm-verity info -export_mode = "" \ No newline at end of file +export_mode = ""