kaniko/pkg/snapshot
Christie Wilson 7f64037a8c Separate snapshotting of parent dirs from files
To make the logic a bit more clear, when snapshotting files, the
parent dirs are now snapshotted in a different loop from the files we
are actually trying to snapshot. Unfortunately this loop is nearly
duplicated but I did managed to group some fo the related logic
together:
- A function to check if the file should be snapshotted (e.g. isn't
whitelisted, etc.)
- Created a `Tar` type to handle some of the logic around tar-ing, e.g.
tracking hardlinks and stat-ing files before adding them

One side effect of this is that now when snapshoting the file system,
files will be stat-ed twice.
2018-08-24 16:34:59 -07:00
..
layered_map.go Always snapshot files in COPY and RUN commands 2018-08-23 18:23:39 -07:00
snapshot.go Separate snapshotting of parent dirs from files 2018-08-24 16:34:59 -07:00
snapshot_test.go No longer try to verify kaniko dir isn't snapshotted 2018-08-23 18:23:46 -07:00