You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior
The flag --registry-mirror can be used multiple times to give multiple registry mirrors into the build process. Sadly, the corresponding environment variable KANIKO_REGISTRY_MIRROR accepts only one registry mirror. When I try to set multiple values via any separator, I get the following error:
WARN[0000] Failed to retrieve image alpine/curl from remapped registry docker-mirror01.extern.XXX dockerhub.intranet.XXX docker-mirror02.extern.XXX: unable to complete operation after 0 attempts, last error: parse "https://docker-mirror01.extern.XXX dockerhub.intranet.XXX docker-mirror02.extern.XXX/v2/": invalid character " " in host name. Will try with the next registry, or fallback to the original registry.
Obviously, the environment variable does not support multiple registry mirrors - see root.go:
ifval, ok:=os.LookupEnv("KANIKO_REGISTRY_MIRROR"); ok {
Expected behavior
It should be possible to add multiple registry mirrors by a separator, e.g. any char, that is not used in urls. In my opinion, a space would be a good choice.
Since this looks like a small change and I'm getting familiar with golang, I would love to implement this feature.
Actual behavior
The flag
--registry-mirror
can be used multiple times to give multiple registry mirrors into the build process. Sadly, the corresponding environment variableKANIKO_REGISTRY_MIRROR
accepts only one registry mirror. When I try to set multiple values via any separator, I get the following error:Obviously, the environment variable does not support multiple registry mirrors - see root.go:
kaniko/cmd/executor/cmd/root.go
Line 72 in 45a6d2d
Expected behavior
It should be possible to add multiple registry mirrors by a separator, e.g. any char, that is not used in urls. In my opinion, a space would be a good choice.
Since this looks like a small change and I'm getting familiar with golang, I would love to implement this feature.
To Reproduce
Steps to reproduce the behavior:
Additional Information
nothing needed
any (gcr.io/kaniko-project/executor:latest)
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: