kaniko/pkg/util
v.rul 7750094ec1 Add checking image presence in cache prior to downloading it
This changes allow to use kaniko-warmer multiple times without unnecessary docker image downloads.
To check image presence in cache directory I'm using existing cache function that is used by kaniko-executor.
I've considered building separate function to only check image presence, but it will have pretty much the same code.
Questionable decision is to embed CacheOptions type to KanikoOptions and WarmerOptions. Probably this should be resolved by creating interface providing needed options and implement it both mentioned structs. But I've struggled to get a meaningfull name to it.
To replicate previous behaviour of downloading regardless of cache state I've added --force(-f) option.

This changes provides crucial speed-up when downloading images from remote registry is slow.

Closes #722
2019-07-24 18:09:21 +03:00
..
bucket_util.go Add missing tests for bucket util (#565) 2019-02-19 09:05:23 -06:00
bucket_util_test.go Add missing tests for bucket util (#565) 2019-02-19 09:05:23 -06:00
command_util.go Misc. small changes/refactoring (#712) 2019-07-23 15:10:22 -07:00
command_util_test.go Optimize file copying and stage saving between stages. (#605) 2019-03-13 07:47:28 -07:00
fs_util.go Misc. small changes/refactoring (#712) 2019-07-23 15:10:22 -07:00
fs_util_test.go Fix file mode bug (#618) 2019-03-18 13:28:24 -05:00
image_util.go Add checking image presence in cache prior to downloading it 2019-07-24 18:09:21 +03:00
image_util_test.go Make the Digest calculation faster for locally-cached images. (#534) 2019-01-22 13:28:21 -06:00
tar_util.go Fix kaniko caching (#639) 2019-05-10 09:57:03 -05:00
tar_util_test.go Separate snapshotting of parent dirs from files 2018-08-24 16:34:59 -07:00
util.go Fix kaniko caching (#639) 2019-05-10 09:57:03 -05:00