-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.7.0 regression when pulling images with --cache-repo and --mirror combined #1790
Comments
Same issue on our side 👍 |
Sorry - that's actually my analysis for #1789, it may apply or not apply here, too. (Posted it on the wrong thread). The problem is, with #1707, the "registry mirror" is no longer interpreted as "registry", but as "repository". It essentially expects a path after the servername/port (i.e. something with points and/or colon in it). Otherwise it's interpreted as path within a repository, which must not contain colons. I.e. by using |
Thanks @brogon Do you have a fix in mind? |
IMO pulling from a mirror repository should have been a complete new flag arg. A repository is validated with the following sanity check :
Btw a simple hostname doesn't pass this test. As a quick workaround it's really simple to make |
Can someone in the thread here confirm if this is still an issue with the latest release/later-releases of kaniko? The PR here (merged Oct 21st 2021) - #1794 mentions it fixes this issue but I would like additional confirmation as a related issue - issue #1791 appears to be ongoing even after PR #1794 was merged event though it mentioned if fixed #1791 as well |
Actual behavior
Since v1.7.0 release my builds are broken, reverting the build image to v1.6.0 make them work again.
Error is :
executor cmd (running in gitlab runner context, using gcr mirror + private registry used for layer caching) :
Dockerfile is starting with a really simple & basic :
Expected behavior
Build is running exactly like in v1.6.0
Additional Information
gcr.io/kaniko-project/executor:debug
was usedTriage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: