kaniko/pkg
Jason Hall 3589382378
Correctly handle platforms that include CPU variants (#1929)
* Correctly handle platforms that include CPU variants

Prior to this change, Kaniko would only select the platform-specific
image from a multi-platform image using the OS and architecture to
select the image. This leads to problems when there are two platforms
that are indistinguishable using only this information (e.g.,
linux/arm/v5 and linux/arm/v7).

This change more explicitly selects the right image from a
multi-platform image, taking CPU variant into account (v5 vs v7), using
containerd's CPU variant detection logic.

This also moves platform defaulting up as early as possible in execution
as it can go, so that malformed platform values are detected as soon as
possible.

* set platform in unit test
2022-02-10 09:12:23 -08:00
..
buildcontext tar: read directly from stdin (#1728) 2021-12-26 07:09:26 -05:00
cache Try to warm all images and warn about errors (#1653) 2021-06-04 10:07:57 -07:00
commands test: use `T.TempDir` to create temporary test directory (#1918) 2022-02-07 13:27:34 -05:00
config Remove tarball.WithCompressedCaching flag to resolve OOM Killed error (#1722) 2021-10-19 00:14:06 -07:00
constants Revert "save snaphots to tmp dir (#1662)" (#1670) 2021-06-14 12:09:07 -07:00
creds Remove k8schain, statically link helpers (#1891) 2022-01-21 12:42:12 -08:00
dockerfile Restore build args after optimize. Fixes #1910, #1912. (#1915) 2022-02-09 11:50:40 -05:00
executor Correctly handle platforms that include CPU variants (#1929) 2022-02-10 09:12:23 -08:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem test: use `T.TempDir` to create temporary test directory (#1918) 2022-02-07 13:27:34 -05:00
image Correctly handle platforms that include CPU variants (#1929) 2022-02-10 09:12:23 -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 test: use `T.TempDir` to create temporary test directory (#1918) 2022-02-07 13:27:34 -05:00
timing Add a lot more timing data. (#518) 2019-01-10 13:27:55 -07:00
util test: use `T.TempDir` to create temporary test directory (#1918) 2022-02-07 13:27:34 -05:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00