kaniko/integration
Gilbert Gilb's a42adb9bb4
Fix composite cache key for multi-stage copy command (#1735)
* 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

* Fix composite cache key for multi-stage copy command (#1706)

PR #1518 reintroduced COPY layers caching using the `--cache-copy-layers`
flag. Unfortunately, this PR also introduced a bug by not including the
stage digest into the caching key of the COPY command when the
`--cache-copy-layers` flag was not set. As a result, kaniko would use
any previous (possibly stalled) layer from the cache because the digest
of the "COPY --from" command would never change.

PR author probably expected Go to fallthrough in the switch just like C
does. However, this is not the case. Go does not fallthrough in
switch-statements by default and requires the fallthrough keyword to be
used. Note that this keyword is not available in type-switches though,
because it wouldn't work properly with typings.

* refactor: add an abstract copy command interface to avoid code duplication

* fix typo in error message

Co-authored-by: Tejal Desai <tejal29@gmail.com>
2021-10-18 23:31:01 -07:00
..
benchmark_fs minimal changes 2020-06-06 00:16:14 -07:00
context Fixes a whitelist issue when untarring files in ADD commands. (#371) 2018-09-28 11:42:07 -07:00
dockerfiles chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
dockerfiles-with-context Add support to --chown flag to ADD command 2020-03-14 16:24:40 +02:00
ignore Re-add support for .dockerignore file 2018-12-10 15:20:25 -08:00
ignore_relative Fix #776 2019-10-03 17:53:14 +02:00
testdata Exit Code Propagation (#1655) 2021-06-01 10:43:49 -07:00
.dockerignore Re-add support for .dockerignore file 2018-12-10 15:20:25 -08:00
BUILD Update ggcr to pick up estargz and caching option (#1527) 2020-12-21 10:09:21 -08:00
benchmark_test.go minimal changes 2020-06-06 00:16:14 -07:00
cleanup.go Pass bucket and repo as args to tests 2018-07-31 09:53:59 -07:00
cmd.go Deflake the daemon test (#532) 2019-01-17 15:30:08 -05:00
config.go Allow contributors to launch integration tests against local registry 2020-02-06 13:35:51 +01:00
gcs.go Actually fix the paths for benchmark uploading during integration test runs. (#543) 2019-01-28 12:52:27 -06:00
images.go chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
integration_test.go Fix composite cache key for multi-stage copy command (#1735) 2021-10-18 23:31:01 -07:00
integration_with_context_test.go add integration tests with their own context 2020-02-29 15:41:10 -08:00
integration_with_stdin_test.go feat: allow injecting through stdin tar.gz on kaniko 2020-03-18 12:29:49 +01:00
k8s-job.yaml chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
k8s_test.go chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
tar.tar chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00