Tejal Desai
df7f4cc9dc
add boilerplate
2020-08-13 14:44:07 -07:00
Tejal Desai
94b2b6b391
gofmt
2020-08-13 14:03:38 -07:00
Tejal Desai
1f456866eb
Merge branch 'master' into opts
2020-08-13 10:43:14 -07:00
Tejal Desai
1bf66ef435
Merge pull request #1153 from why-xn/master
...
Checkout a specific git commit
2020-08-13 10:41:26 -07:00
Tejal Desai
d83338e372
Merge pull request #1318 from caarlos0/git
...
feat: accept GIT_TOKEN
2020-08-13 10:40:07 -07:00
Tejal Desai
28a38ea4c2
Merge pull request #1374 from tsufeki/current-platform-in-warmer
...
Use current platform when fetching image in warmer
2020-08-13 10:36:58 -07:00
Tejal Desai
4ec9f206c8
Merge pull request #1379 from tejal29/fix_use_new_run
...
fix use new run marker
2020-08-13 09:46:20 -07:00
Tejal Desai
9a12c6f88e
gofmt
2020-08-12 18:54:53 -07:00
Tejal Desai
a8bef58fa5
Merge branch 'master' into opts
2020-08-12 16:55:51 -07:00
Tejal Desai
553933514a
fix use new run marker
2020-08-12 16:06:19 -07:00
tsufeki
4af795bf4a
Use current platform when fetching image in warmer
...
Cache warming fetched images without specifying platform, which resulted
in always pulling default linux/amd64. Even when kaniko was built and
run on arm64.
This change brings warmer's behaviour in line with executor's by
specifying runtime.GOOS/GOARCH.
Fixes #1372
2020-08-07 15:52:15 +02:00
Carlos Alexandro Becker
008f8e890c
fix: lint issues
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-29 23:32:40 -03:00
Carlos Alexandro Becker
fdcc40683e
fix: lint issues
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-29 23:26:08 -03:00
Carlos Alexandro Becker
ed04106af4
Merge remote-tracking branch 'upstream/master' into git
2020-07-29 23:24:17 -03:00
Tejal Desai
a47a78edae
Merge pull request #1319 from caarlos0/go-git
...
feat: upgrade go-git
2020-07-28 21:32:16 -07:00
Tejal Desai
92917bab3a
Merge pull request #1326 from greut/add-to-err-on-404
...
add should fail on 40x
2020-07-28 21:30:29 -07: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
Tejal Desai
46f270bbd4
Merge pull request #1264 from greut/fix/1172
...
pkg: prepend library when using registry mirror
2020-07-28 14:55:36 -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
Carlos Alexandro Becker
e483bee97c
feat: git options
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-24 15:31:32 -03:00
Carlos Alexandro Becker
f744acfbb7
Merge remote-tracking branch 'upstream/master' into opts
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-24 15:10:05 -03:00
Tejal Desai
cdbd8af057
Merge pull request #1328 from jonjohnsonjr/artifact-registry
...
Add pkg.dev to automagic config file population
2020-06-23 14:55:04 -07:00
Jon Johnson
c42881410c
Add pkg.dev to automagic config file population
...
Kaniko currently does config file setup for GCR such that pushing to GCR
automagically works. This change does the same for pkg.dev:
https://cloud.google.com/artifact-registry
This also tightens up the hostname check to ensure we don't send
credentials to a registry that happens to contain "gcr.io".
2020-06-23 11:23: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
Carlos Alexandro Becker
57c2df4d97
feat: new git flags
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 17:24:04 -03:00
Carlos Alexandro Becker
ab42a919a5
feat: recurse submodules
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 12:01:25 -03:00
Carlos Alexandro Becker
7b8879c03f
feat: upgrade go-git
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 11:58:04 -03:00
Carlos Alexandro Becker
13e6bdf533
fix: improve tests
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 11:20:27 -03:00
Carlos Alexandro Becker
8322cbe3b6
feat: accept GIT_TOKEN
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 11:16:50 -03:00
Tejal Desai
98a2ee2e34
intoduce delay
2020-06-06 20:52:58 -07:00
Tejal Desai
07cdfcf091
fix tests
2020-06-06 20:28:04 -07: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
1033ad789b
Merge pull request #1301 from tejal29/addRedoSnapshotter
...
Add redo snapshotter.
2020-06-06 16:48:30 -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
b7462742c1
add deletion logic
2020-06-06 02:05:45 -07:00
Yoan Blanc
ce8298bb14
image: add test
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-06-06 10:31:42 +02:00
Tejal Desai
ede69f8507
check file changed in loop
2020-06-06 01:24:46 -07:00
Tejal Desai
2a7d33526b
lint
2020-06-06 00:30:07 -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
Yoan Blanc
fcb055e581
Merge remote-tracking branch 'origin/master' into fix/1172
2020-06-06 08:42:30 +02:00
Tejal Desai
43338d4b2f
add a new run command along with a new flag
2020-06-05 19:53:16 -07:00