kaniko/pkg
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
..
buildcontext fix: remove single branch option 2019-06-22 12:17:46 -03:00
cache Add checking image presence in cache prior to downloading it 2019-07-24 18:09:21 +03:00
commands Misc. small changes/refactoring (#712) 2019-07-23 15:10:22 -07:00
config Add checking image presence in cache prior to downloading it 2019-07-24 18:09:21 +03:00
constants Merge branch 'issue#269' of https://github.com/vkartik97/kaniko into vkartik97-issue#269 2019-02-21 11:55:51 -08:00
creds Refactor our credential fetching to only get k8s credentials if we are on k8s. (#522) 2019-01-11 11:36:43 -07:00
dockerfile Misc. small changes/refactoring (#712) 2019-07-23 15:10:22 -07:00
executor Merge pull request #680 from tbarrella/go-containerregistry-upgrade 2019-07-23 14:35:19 -07:00
image dep update go-containerregistry 2018-06-03 00:59:34 +00:00
snapshot Misc. small changes/refactoring (#712) 2019-07-23 15:10:22 -07:00
timing Add a lot more timing data. (#518) 2019-01-10 13:27:55 -07:00
util Add checking image presence in cache prior to downloading it 2019-07-24 18:09:21 +03:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00