kaniko/pkg
Angus Williams de3032f982
Refactors IsSrcRemoteFileURL to only validate the URL is valid (#2563)
`IsSrcRemoteFileURL` was doing a `http.Get` call to make sure the URL was valid, but not surfacing any errors.
Because the error from the http.Get call is not handled, some useful information can be buried.
It also means kaniko will download the file twice during a build, once to validate, and once to actually add the file
to the image.
Removing the http.Get call and validating the URL is valid, and has the correct schema and hostname will stop
the double handling, and allow any errors to be surfaced through the error handing in the file download function.

Fixes #1590

Signed-off-by: Angus Williams <anguswilliams@gmail.com>
2023-06-14 10:20:28 -07:00
..
buildcontext use aws-sdk-go-v2 (#2550) 2023-06-07 14:54:30 -07:00
cache Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07:00
commands Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
config Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07:00
constants Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
creds Add GitLab CI credentials helper (#2040) 2022-04-11 13:13:47 -04:00
dockerfile fix: use debian buster to fix tests using no longer supported stretch which had broken apt-get urls (#2485) 2023-04-27 22:05:37 -04:00
executor fix: paths deduplication while resolving symlinks (#2504) 2023-05-29 01:37:20 -07:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem chore: remove duplicate word in comments (#2232) 2022-08-30 06:02:39 -04:00
image Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07: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 Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00
timing Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00
util Refactors IsSrcRemoteFileURL to only validate the URL is valid (#2563) 2023-06-14 10:20:28 -07:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00