kaniko/pkg
Andreas Fleig bc46c24707
Write parent directories to tar before whiteout files (#2113)
* Write parent directories to tar before whiteout files

Fixes #1149

The OCI image spec does not specify this order but it's a good idea and Docker
does the same.

When manually comparing layers created by Docker and Kaniko there are still
some differences (that container-diff does not show):

* Kaniko adds / to layers
* For `mkdir /test`, docker adds `/test` and an opaque whiteout file
  `/test/.wh..wh..opq`. Kaniko only adds `/test/` (and /).

* snapshot_test: cleanup

Fix typos and use listFilesInTar() where possible
2022-05-31 16:42:32 -04:00
..
buildcontext feat: kaniko dir config option (#1997) 2022-03-31 15:10:23 -04:00
cache Try to warm all images and warn about errors (#1653) 2021-06-04 10:07:57 -07:00
commands fix: Refactor `LayersMap` to correct old strange code behavior (#2066) 2022-05-17 20:30:58 -04:00
config fix: Refactor `LayersMap` to correct old strange code behavior (#2066) 2022-05-17 20:30:58 -04:00
constants feat: kaniko dir config option (#1997) 2022-03-31 15:10:23 -04:00
creds Add GitLab CI credentials helper (#2040) 2022-04-11 13:13:47 -04:00
dockerfile fix: Refactor `LayersMap` to correct old strange code behavior (#2066) 2022-05-17 20:30:58 -04:00
executor fix: Refactor `LayersMap` to correct old strange code behavior (#2066) 2022-05-17 20:30:58 -04:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem fix: Refactor `LayersMap` to correct old strange code behavior (#2066) 2022-05-17 20:30:58 -04:00
image feat: kaniko dir config option (#1997) 2022-03-31 15:10:23 -04: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 Write parent directories to tar before whiteout files (#2113) 2022-05-31 16:42:32 -04:00
timing Add a lot more timing data. (#518) 2019-01-10 13:27:55 -07:00
util Fix missing setuid flags on COPY --from=build operation (#2089) 2022-05-22 09:20:18 -04:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00