Tejal Desai
1da17b6e9b
chore: add workflows for pr tests ( #1766 )
...
* chore: add workflows for pr tests
* fix unit tests
* fix formatting
* chore: fix gobuild
* change minikube script
* chore: fix lint install script
* chore: ignore and fix tests
* fix lint and run gofmt
* lint fixes
* k8s executor image only
* fix Makefile
* fix travis env variables
* more info on k8s tests
* fix travis run
* fix
* fix
* fix
* fix log
* some more changes
* increase timeout
* delete travis.yml and fix multiple copy tests
* fix registry mirror
* fix lint
* add concurency
* last attemot to fix k8 integrations
* diff id for diff workflows
2021-10-18 23:22:44 -07:00
Rhianna
b525d1e27b
Support force-building metadata layers into snapshot ( #1731 )
...
* feat: add support for forcing build metadata
* Chore: Added snapshot forceBuildMetadata flag tests.
2021-10-18 11:43:51 -07:00
Tejal Desai
094fe52b37
Revert "save snaphots to tmp dir ( #1662 )" ( #1670 )
...
This reverts commit 754253d375 .
2021-06-14 12:09:07 -07:00
Patrick Barker
754253d375
save snaphots to tmp dir ( #1662 )
2021-06-14 12:08:47 -07:00
Josh Chorlton
ece215c181
reject tarball writes with no destinations ( #1534 )
...
* reject tarball writes with no destinations
* Update pkg/snapshot/snapshot.go
Co-authored-by: Tejal Desai <tejal29@gmail.com>
2021-01-03 10:13:05 -08:00
Tejal Desai
2427b348ac
Merge pull request #1350 from hlubek/bugfix-reproducible-whiteout
...
Bugfix: Reproducible layers with whiteout
2020-07-28 14:57:28 -07:00
Joe Kutner
29a02b08ff
Move snapshotPathPrefix into a method
...
This allows the value to be determined on the fly, which supports consumers that use Kaniko snaphot as a library and may need to change the value of config.KanikoDir
2020-07-26 21:46:33 -05:00
Christopher Hlubek
5c61bc44bd
Remove unreliable unit test for SnasphotFS with whiteout
2020-07-20 11:35:25 +02:00
Christopher Hlubek
699a4bee32
Bugfix: Reproducible layers with whiteout
...
When deleting files of previous layers, the whiteout files
were not added to the tar file in a consistent order.
This change adds a stable sorting to the whiteout files and
adds unit tests to check for stable sorting.
2020-07-16 10:56:59 +02:00
Tejal Desai
4ac51ef515
merge
2020-06-06 20:17:17 -07:00
Tejal Desai
c85d64c8ae
better shdTakeSnapshot
2020-06-06 19:49:34 -07:00
Tejal Desai
8d3bbd20f4
initialize
2020-06-06 15:50:24 -07:00
Tejal Desai
988114d022
re-use cache when checking and adding
2020-06-06 15:27:39 -07:00
Tejal Desai
c576771497
fix tests
2020-06-06 11:37:35 -07:00
Tejal Desai
b9d25dd5db
better whiteout logic
2020-06-06 10:50:24 -07:00
Tejal Desai
cbf4452fe9
fix snapshot
2020-06-06 10:03:37 -07:00
Tejal Desai
ede69f8507
check file changed in loop
2020-06-06 01:24:46 -07:00
Tejal Desai
0f5387960e
minimal changes
2020-06-06 00:16:14 -07:00
Tejal Desai
58276274e8
better improvements
2020-06-05 23:44:17 -07:00
Tejal Desai
43338d4b2f
add a new run command along with a new flag
2020-06-05 19:53:16 -07:00
Tejal Desai
9c68c9a36c
Merge branch 'master' into fix_looping
2020-06-04 13:18:30 -07:00
Tejal Desai
cbf3073fda
rename whitelist to ignorelist
2020-06-02 15:56:27 -07:00
Tejal Desai
e0f93578b6
Merge pull request #1284 from tejal29/add_timings
...
add timings for resolving paths
2020-05-23 15:37:58 -07:00
Tejal Desai
41bc04dc12
add timings for resolving pahts
2020-05-23 14:29:46 -07:00
Tejal Desai
503aad17b7
Fix looping through files twice
2020-05-23 14:24:07 -07:00
Gábor Lipták
bec0e6a8e3
Correct typo
2020-05-07 16:24:07 -04:00
Gilbert Gilb's
fd8a2d6dd8
Merge branch 'master' into snapshot-directories
2020-03-31 14:25:04 +02:00
Gilbert Gilb's
e5585fded8
Always add parent directories of files to snapshots.
...
During a snapshot, when a file changed and not its parent directories,
the parent directories weren't added to the layer. This is inconsistent
with Docker's behavior which always add parent directories to the layer.
In some edge-cases, it could lead to problems with docker considering
that parent directories where owned by root in forthcoming layers
although they shouldn't (see #1163 ).
Also, Docker seems to be POSIX compliant regarding the name of
directories in the archive, which always have a slash appended. This
commit also fixes this.
Fixes #1163
2020-03-29 18:25:37 +02:00
Tejal Desai
caaf6c8adf
fix tests
2020-03-24 10:50:59 -07:00
Tejal Desai
ffc372a63b
refactor to add unit tests
2020-03-23 17:48:49 -07:00
Tejal Desai
6c14d202a3
better error wrapping and add more tests for copy
2020-03-06 17:18:36 -08:00
cvgw
965b606720
remove cruft and unneeded loop
2020-02-23 13:38:08 -08:00
cvgw
a675ad998a
Resolve filepaths before scanning for changes
2020-02-20 09:45:44 -08:00
Tejal Desai
c9dc474031
fix linter
2020-02-07 13:47:17 -08:00
Tejal Desai
8b69a13641
fix commut
2020-02-06 15:37:47 -08:00
Tejal Desai
674f5bda5d
fix tests
2020-02-06 15:17:09 -08:00
tinkerborg
82bce229bd
omit uname/gname in tar headers
...
When using cache, the rootfs may not have been extracted. This prevents uname/gname from resolving
as there is no /etc/password or /etc/group. This makes this layer unnecessarily differ from
a cached layer which does contain this information. Omitting these should be consistent with Docker's
behavior.
2020-02-06 13:36:26 -05:00
tinkerborg
cc2c9a0663
sort filesToAdd in TakeSnapshot
...
filesToAdd is sorted in TakeSnapshotFS, but not here. This makes ordering unpredictable within the layer's tarball,
causing the SHA to differ even if layer contents haven't changed
2020-02-06 13:36:21 -05:00
Tejal Desai
3f73230884
Merge pull request #1000 from tejal29/769
...
whitelist /tmp/apt-key-gpghome.* directory
2020-01-31 10:50:26 -08:00
Thomas Bonfort
6b6742fd9d
Changle loglevel for whiteouts to debug
2020-01-31 12:02:32 +01:00
Tejal Desai
5951d9b0ee
add /tmp/apt-key to whitelist for Dockerfiles which use command
2020-01-24 15:54:44 -08:00
Tejal Desai
3e5d0a6334
add unit tests
2020-01-23 11:12:54 -08:00
Tejal Desai
bb129e9c88
code review comments
2020-01-22 16:27:06 -08:00
Tejal Desai
478205e5ca
fix adding symlinks to FS which do not exists
2020-01-22 15:27:01 -08:00
Tejal Desai
f1f7297478
fix tests
2020-01-22 11:47:10 -08:00
Tejal Desai
da7e9928e4
Fix Symlinks not being copies across stages
2020-01-22 11:47:10 -08:00
Prashant Arya
85f1a5db00
Merge branch 'master' of https://github.com/GoogleContainerTools/kaniko into log
2019-12-19 03:20:56 +00:00
Cole Wippern
697037cbcf
Add unit tests for compositecache and stagebuilder
...
* add mock types for testing
* enhance error messaging
* add tests
2019-11-27 21:47:00 -08:00
Prashant Arya
857715012f
changing log level
2019-11-26 17:52:11 +00:00
Tejal Desai
873b577e1a
Merge pull request #729 from xanonid/Remove_leading_slash_in_layer_tarball_paths
...
Remove leading slash in layer tarball paths (Closes : #726 )
2019-09-13 10:05:25 -07:00