kaniko/integration
Priya Wadhwa 5bdb87e0e7 Extract filesystem in order rather than in reverse
Extracting the layers of the filesystem in order will make it easier to
extract cached layers and deal with hardlinks.

This PR implements extracting in order and adds an integration tests to
make sure hardlinks are extracted properly.

It also fixes two bugs I found when extracting symlinks:

1. We'd get a "file exists" error when trying to symlink to an existing
file with a whiteout later in the layer tarball
2. We'd get a "file exists" error when trying to create a symlink from a
file that was created in a prior layer (perhaps as a regular file or as
a symlink pointing to someting else)

To fix both of these, we resolve all symlinks in a layer at the end. I
also added logic to delete any existing paths before creating the
symlink.
2018-08-29 15:44:38 -07:00
..
context Don't copy same files twice in copy integration tests (#273) 2018-08-03 10:01:29 -07:00
dockerfiles Extract filesystem in order rather than in reverse 2018-08-29 15:44:38 -07:00
cleanup.go Pass bucket and repo as args to tests 2018-07-31 09:53:59 -07:00
cmd.go Don't copy same files twice in copy integration tests (#273) 2018-08-03 10:01:29 -07:00
gcs.go Pass bucket and repo as args to tests 2018-07-31 09:53:59 -07:00
images.go Add a bit more context to layer offset failures 2018-07-31 15:33:47 -07:00
integration_test.go Extract filesystem in order rather than in reverse 2018-08-29 15:44:38 -07:00