kaniko/pkg
Vincent Behar 131828a1ad
feat: support multiple registry mirrors with fallback (#1498)
Fixes #1473

The initial implementation of the registry mirror only allowed a single mirror, and if pulling from the mirror failed, the build would fail.

This change introduces:
- multiple registry mirrors instead of a single one
- fallback if an image can't be pulled from a registry

This is the same behavior as the docker daemon and will allow using a registry mirror such as `mirror.gcr.io` which is incomplete and doesn't have all the content that the default registry on docker.io has.

Note that there are no changes in the CLI flags, the `--registry-mirror` flag is still valid. But now it can be used multiple times to set up more than one registry mirror.

Co-authored-by: Tejal Desai <tejaldesai@google.com>
2020-12-08 16:16:25 -08:00
..
buildcontext gofmt 2020-08-13 14:03:38 -07:00
cache Use current platform when fetching image in warmer 2020-08-07 15:52:15 +02:00
commands Fix .dockerignore for build context copies in later stages (#1447) 2020-10-08 12:47:14 -07:00
config feat: support multiple registry mirrors with fallback (#1498) 2020-12-08 16:16:25 -08:00
constants Remove unused code (#1495) 2020-12-08 16:11:42 -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 Merge pull request #1260 from ljakimczuk/master 2020-06-04 13:24:34 -07:00
executor Add option customPlatform (#1500) 2020-12-08 16:11:18 -08:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem ADD GCB benchmark code 2020-06-05 12:46:47 -07:00
image feat: support multiple registry mirrors with fallback (#1498) 2020-12-08 16:16:25 -08:00
logging Add timestamp to logs 2020-04-23 13:40:47 +02:00
mocks/go-containerregistry/mockv1 rename mock pkg for lint 2020-01-17 14:59:14 -08:00
snapshot Merge pull request #1350 from hlubek/bugfix-reproducible-whiteout 2020-07-28 14:57:28 -07:00
timing Add a lot more timing data. (#518) 2019-01-10 13:27:55 -07:00
util Fix COPY with --chown command (#1477) 2020-12-08 16:12:04 -08:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00