Tejal Desai
994a412d0b
some more renames
2020-06-02 16:08:46 -07:00
Tejal Desai
cbf3073fda
rename whitelist to ignorelist
2020-06-02 15:56:27 -07:00
Tejal Desai
3f3c19a545
Merge pull request #1234 from tejal29/fix_copy_from
...
Apply dockefile exclude only for first stage
2020-05-19 15:40:51 -07:00
Tejal Desai
23ac909b2d
Revert "small perf optimizing. Only remove whiteout path if it needs to be included in the tar"
...
This reverts commit 67db51810b .
2020-05-06 12:08:44 -07:00
Tejal Desai
113c2397ea
Update comment.
2020-05-05 22:27:28 -07:00
Tejal Desai
5e275d9824
Apply dockefile exclude only for first stage
2020-05-05 21:45:36 -07:00
Gilbert Gilb's
14170aa455
Fix sorting of parent directories.
...
This refactoring reversed the order of the "ParentDirectories" function: ffc372a63b (diff-d36eb675aa49a7b471e3a2be77005b18R465)
As a side-effect, parent directories weren't added in lexicographical
order, which broke some tests. We now ensure in unit test that the order
of the ParentDirectories function is stable.
2020-03-31 20:18:24 +02:00
Tejal Desai
0fe0a64113
Merge pull request #1168 from PhoenixMage/32bit-overflow-fix
...
32bit overflow fix
2020-03-30 10:23:31 -07:00
Tejal Desai
8dc64549a1
Merge pull request #1155 from tejal29/fix_multi_stage_symlinks
...
Refactor Kaniko to test across multistages
2020-03-30 10:21:51 -07:00
PhoenixMage
aa6a3de316
Fix 32bit overflow
...
math.UaxUint32 will actually overflow on a 32 bit platform (tested on armv7)
This will resolve that issue.
2020-03-30 23:37:34 +11:00
Tejal Desai
ffc372a63b
refactor to add unit tests
2020-03-23 17:48:49 -07:00
Tejal Desai
67db51810b
small perf optimizing. Only remove whiteout path if it needs to be included in the tar
2020-03-18 00:43:55 -07:00
Dani Raznikov
c136f886a9
Add support to --chown flag to ADD command
2020-03-14 16:24:40 +02:00
Tejal Desai
9592f2640f
more tests similar to docker cp
2020-03-09 15:54:35 -07:00
Tejal Desai
2181c5e6f5
create correct link across Multistage builds
2020-03-07 11:28:16 -08:00
Tejal Desai
c523c691eb
revert back to old 0.17.1 behavior
2020-03-06 23:48:31 -08:00
Tejal Desai
6c14d202a3
better error wrapping and add more tests for copy
2020-03-06 17:18:36 -08:00
Tejal Desai
b4b70d040a
wip
2020-03-06 13:08:02 -08:00
Tejal Desai
3cc8aa2a9c
fix resolve link for dirs with trailing /
2020-03-06 09:38:00 -08:00
Tejal Desai
dd5d2e6661
ignore errors while deleting
2020-02-28 04:48:22 -08:00
Tejal Desai
17f808da8a
check for filepath.Walk error everywhere
2020-02-28 04:23:27 -08:00
Tejal Desai
a1af057f99
Merge pull request #1069 from cvgw/u/cgwippern/implement-filepath-resolver
...
Resolve filepaths before scanning for changes
2020-02-25 00:19:38 -08:00
cvgw
60e2187d85
Fix #1020 os.Chtimes invalid arg
...
The zero value of time.Time is not a valid argument to os.Chtimes
because of the syscall that os.Chtimes calls. Instead we update the zero
value of time.Time to the zero value of Unix Epoch
2020-02-24 08:29:19 -08:00
cvgw
a675ad998a
Resolve filepaths before scanning for changes
2020-02-20 09:45:44 -08:00
Tejal Desai
2cd68d2e2f
fix flake in copy symlink
2020-02-05 14:40:52 -08:00
Tejal Desai
2e95c3040c
update initialWhitelist instead of whitelist
2020-02-04 11:06:26 -08:00
xanonid
ac4c80d241
Refactor code, introduce constants for uid/gid = -1
2020-02-03 14:56:23 -08:00
xanonid
e3b5a7b85d
Support COPY --chown flag ( Closes : #9 )
2020-02-03 14:56:23 -08: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
Tejal Desai
8bdcb4f544
Merge pull request #854 from WanzenBug/ignored-files-invalidate-cache
...
Fix caching to respect .dockerignore
2020-01-29 11:32:43 -08:00
Tejal Desai
8b991f6baf
Add falg to --whitelist-var-run set to true to preserver default kaniko behaviour of /var/run ignored. Set it to false to add /var/run in destination directory
2020-01-28 10:52:36 -08:00
Tejal Desai
d49c198c90
Revert "add option additonal-whitelist"
...
This reverts commit 72bfed1850 .
2020-01-28 08:52:36 -08:00
Tejal Desai
0529579db7
Merge pull request #971 from tejal29/915
...
Fix Symlinks not being copied across stages
2020-01-27 10:58:49 -08:00
Tejal Desai
e0322042c7
use filepath.Match instead of regex
2020-01-24 22:12:37 -08:00
Tejal Desai
5951d9b0ee
add /tmp/apt-key to whitelist for Dockerfiles which use command
2020-01-24 15:54:44 -08:00
Cole Wippern
72bfed1850
add option additonal-whitelist
...
Add a new option additonal-whitelist which defaults
to a single entry, "/var/run". This will allow users to
remove "/var/run" from the whitelist or retain the current
behavior with no change.
2020-01-23 16:50:33 -08:00
Moritz Wanzenböck
123dcaf83e
Fix caching to respect .dockerignore
...
Previously kaniko would compute the cache key for any copy command by computing
the combined hash of all files in a directory, even if they were listed
as ignored.
With this change, the cache key creation was updated to be aware of ignored
files.
Related issues:
* https://github.com/GoogleContainerTools/kaniko/issues/594
2020-01-23 15:37:37 -08:00
Cole Wippern
a2aae6274d
Merge pull request #973 from cvgw/u/cgwippern/fix-issue-704
...
Fix issue #704
2020-01-23 13:00:34 -08:00
Tejal Desai
bb129e9c88
code review comments
2020-01-22 16:27:06 -08:00
Tejal Desai
b271eb8ab9
fix linter
2020-01-22 15:39:03 -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
Tejal Desai
d362359314
Merge pull request #981 from cvgw/u/cgwippern/fix-issue-940
...
Fix #940 set modtime when extracting
2020-01-21 09:59:22 -08:00
Cole Wippern
4e8bdb3947
Fix #940 set modtime when extracting
...
Certain utilities like Apt depend on modtime
for certain files. Kaniko was not setting modtime when
extracting files and so this broke things like apt.
Kaniko now sets the file mod time to the value from the tar
header.
2020-01-20 09:11:44 -08:00
Cole Wippern
876f24b0c9
update caching run and copy extracted files
...
Update caching run and copy commands to use the new
GetFSFromLayers method and include the whiteout option so that
whiteout files are extracted and included in extractedFiles
2020-01-17 14:19:58 -08:00
Cole Wippern
71aed35094
GetFSFromLayers
...
* add util.GetFSFromLayers
* GetFSFromImage delegates to GetFSFromLayers
* add FSOpts and FSConfig for GetFSFromLayers
* add tests for GetFSFromLayers
* add gomock for test support
* add mock_v1 for layers
2020-01-17 13:36:23 -08:00
Logan.Price
6a35a84034
fix: update unTar function to actually extract and save the contents of an achieve
2019-12-21 15:42:00 -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
2aa481c15e
add unit tests for caching run and copy
2019-12-10 09:29:10 -08:00