kaniko/pkg/config
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
..
args.go Allow user to provide registry certificate 2020-03-08 18:17:50 +01:00
args_test.go Allow user to provide registry certificate 2020-03-08 18:17:50 +01:00
init.go rename whitelist to ignorelist 2020-06-02 15:56:27 -07:00
options.go feat: support multiple registry mirrors with fallback (#1498) 2020-12-08 16:16:25 -08:00
options_test.go add boilerplate 2020-08-13 14:44:07 -07:00
stage.go Update copy command cache key logic 2019-12-09 16:48:20 -08:00