Jason Hall
633f555c5c
Fix implicit GCR auth ( #1856 )
...
* Fix implicit GCR auth
* boilerplate
2021-12-28 20:34:32 -05:00
Andrei Kvapil
2ea368dde8
tar: read directly from stdin ( #1728 )
...
* tar: run directly from stdin
* export UnTar function
2021-12-26 07:09:26 -05:00
Andrei Kvapil
e38b0c8d90
Fix calculating path for copying ownership ( #1859 )
...
* Fix calculating path for copying ownership
* fix CI
2021-12-24 07:09:53 -05:00
Andrei Kvapil
7065921aa4
Fix copying ownership ( #1725 )
...
* fix uid, gid overriding
* fix ownership for staging building
* add integration test
* add check for ignored files
* improve errors
2021-12-23 13:25:55 -05:00
Lars Seipel
ac1a703731
Fix possible nil pointer derefence in fs_util.go ( #1813 )
...
When os.Stat returns an error different from ErrNotExist,
mkdirAllWithPermissions may panic with a nil pointer
derefence due to insufficient error checking.
Avoid the panic by bailing out, returning the error to the
caller.
2021-12-23 11:37:27 -05:00
Travis DePrato
ee95be1e27
Use pax tar format ( #1809 )
...
* Use PAX tar format
* Add test case
2021-12-23 11:35:00 -05:00
François JACQUES
5c81fa5774
Fixes #1837 : keep file capabilities on archival ( #1838 )
...
Signed-off-by: JACQUES Francois <hypnoce@donarproject.org>
2021-12-22 20:05:39 -05:00
Tejal Desai
cf4822c31c
Run docker_credentials_gcr in warmer ( #1780 )
...
* run docker_credentials_gcr in warmer
* fix tests
* fix dockerfiles
* fix boilerplate
* mend
* fix
* another lint
2021-10-19 12:25:42 -07:00
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
nihilo
682191f523
Bugfix/trailing path separator ( #1683 )
...
* Test_EnvReplacement: env of path ends in a slash
* Fix trailing path separator
2021-07-08 12:06:52 -07:00
Kamal Nasser
f21639daac
Fix snapshotter ignore list; do not attempt to delete whiteouts of ignored paths ( #1652 )
...
* avoid deleting whiteouts if they are in ignore list
* fix snapshotter ignore list
* include filesystem mounts in ignorelist of snapshotter
* clean up ignore list logic
* add unit and integration tests for #1652
* fix tests and ignore list updates
2021-06-04 10:07:24 -07:00
Jon Friesen
d40a51f38f
adds ignore-path command arguments to executor ( #1622 )
...
* adds ignore-path command
* add flag to README
2021-04-13 14:29:51 -07:00
Sascha Schwarze
69f942f751
Improve retry behavior for push operation ( #1578 )
...
* Update go-containerregistry to 0.4
* Implement --push-retry argument
2021-02-22 21:25:58 -08:00
Tejal Desai
86e361c20e
Update fs_util.go
2020-12-22 00:16:54 -08:00
Tejal Desai
9f76932171
Update GowalkDir dependency to pick up fixes. Added default 90 min timeout for walking FS. Override it with environment variable. Add slowjam to kaniko pod ( #1530 )
2020-12-21 22:40:37 -08:00
Vincent Behar
dde98a8e73
feat(warmer): Warmer now supports all registry-related flags ( #1499 )
...
which means we can now:
- set up one or more mirrors
- set up registries certificates
- skip TLS verify
- use plain HTTP
using the same set of flags that are defined for the executor
2020-12-10 22:55:43 -08:00
Sladyn
0c1a1a690a
Fix COPY with --chown command ( #1477 )
...
* Fix COPY with --chown command
* fix linters
2020-12-08 16:12:04 -08:00
Shashank
9ed158c1f6
Fixes #1469 : Remove file that matches with the directory path ( #1478 )
...
* Fixes #1469 : Remove file that matches with the directory path
* Fixes #1469 : Remove file that matches with the directory path
* Fixes #1469 : Fix lint errors
* Fixes #1469 : Fix lint errors
* Fixes #1469 : Fix lint errors
* Fixes #1469 : Reduce conditional depth
* Fixes #1469 : Remove an additional line
Co-authored-by: anugu-chegg <anugu.s@chegg.com>
2020-11-05 08:48:55 -08:00
Tinjo Schöni
5f4e2f1366
Fix .dockerignore for build context copies in later stages ( #1447 )
...
* Extend .dockerignore integration test with copies in later stages
.dockerignore should continue to apply when copying from the build context in later stages, but it currently doesn't
* Replace excluded global with passed along FileContext struct
This new FileContext struct allows much cleaner handling of context specific file exclusions.
The global excluded file state is no longer needed.
Additionally this also fixes the issue where excluded files aren't being applied for build context copies in later build stages.
2020-10-08 12:47:14 -07:00
Joe Kutner
0a0b4f1583
Add func to append to ignorelist.
...
This allows those using Kaniko as a library to add ignored dirs and
files without needs to modify /proc/self/mountinfo or doing other
strange things with mount -t tmpfs
2020-08-26 08:30:42 -05:00
Tejal Desai
11024f258d
new implementation for run
2020-08-13 13:43:07 -07:00
Yoan Blanc
999365f5f9
fixup! fixup! add should fail on 40x
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-06-20 10:42:59 +02:00
Yoan Blanc
ca23ae441e
add should fail on 40x
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-06-20 09:49:11 +02:00
Tejal Desai
4ac51ef515
merge
2020-06-06 20:17:17 -07:00
Tejal Desai
58276274e8
better improvements
2020-06-05 23:44:17 -07:00
Tejal Desai
bea020f34f
add another snapshotter
2020-06-05 02:54:32 -07:00
Tejal Desai
ec3ca84ad9
add another redo snapshotter
2020-06-04 22:02:13 -07:00
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
Ben Einaudi
2f6090dcd7
Remove use of DefaultTransport
...
Using DefaultTransport and manipulating its tls configuration may lead to unexpected behaviour
2020-05-20 11:43:13 +02: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
d9a6bbe956
add tests
2020-05-06 12:11:03 -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
Tejal Desai
e32715ef55
Merge pull request #1164 from tstromberg/add-groups
...
Add secondary group impersonation w/ !cgo support
2020-05-03 22:00:36 -07:00
Tejal Desai
cb14b65e08
fix boilerplate
2020-05-03 21:10:55 -07:00
Tejal Desai
5cbf34b67e
Update pkg/util/groupids_fallback.go
2020-05-03 21:04:22 -07:00
Tejal Desai
7eb2458ba4
Merge pull request #1166 from gilbsgilbs/snapshot-directories
...
Always add parent directories of files to snapshots.
2020-05-01 10:25:25 -07:00
Tejal Desai
8a780be748
Merge pull request #1139 from JordanGoasdoue/allow-injecting-context-tar-gz
...
feat: allow injecting through stdin tar.gz on kaniko
2020-05-01 10:24:05 -07:00
Dani Raznikov
6b44ed4477
calculateDepdencies on a copy of envvars
2020-04-04 23:27:15 +03: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
Gilbert Gilb's
fd8a2d6dd8
Merge branch 'master' into snapshot-directories
2020-03-31 14:25:04 +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
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
Thomas Stromberg
a6504769e3
Add secondary group impersonation w/ !cgo support
2020-03-28 22:01:20 -07:00
Tejal Desai
caaf6c8adf
fix tests
2020-03-24 10:50:59 -07:00
Tejal Desai
5da32d3f18
Merge pull request #1147 from tejal29/small_perf
...
small perf optimizing. Only remove whiteout path if it needs to be included in base image
2020-03-23 18:12:39 -07:00