kaniko/integration/dockerfiles
Joël Pepper 14ea7c4071
Fix Integration tests (#2425)
* fix(ci): Bump golangci-lint to 1.51.1

* chore(lint): fix gofmt and goimport issues

* chore(lint): fix linter issues

- Adapted error comparison according to linter recommendation
- Disabled noctx linting for http request where canceling makes no sense
- Disabled nilerror linting where nil error is returned on purpose
- Disabled makezero linter where slice is explicitly deepcopied

* chore(ci): Update go version in tests workflows

* fix(ci): Allow boilerplate years from 2000-2099

Previously the regex only allowed the copyright notice to contain the
years 2018,2019,2020,2021, or 2022. This commit widens to regex to
20\d\d allowing any year in the range [2000-2099]

* feat(ci): Replace minikube with k3s for intregration tests

The existing setup for minikube is very complicated, replicating most of
the setup steps for a full kubernetes cluster in an only partially
supported minikube configuration (driver=none). Furthermore the existing
setup has been broken for sometime, likely, at least in part due to the
changes to CNI and CRI in recent kubernetes versions.

Since what we actually need is only a running Kubernetes cluster on the
node and access to a registry on localhost:5000, we can switch the
extremely complicated minikube setup for a lightweight cluster using
k3s. Minikube came with a default addon for running a registry on every
node, but the same is not the case for k3s, instead we make use of the
package helm controller and its HelmChart CR to deploy twuni/docker-registry.helm
and expose it on localhost using the integrated LoadBalancer controller.

* fix(test-684): pin base container version

The dockerfile for the regression test connected to issue 684 used a
rolling tag as base image, making it flaky and fail since it was
introduced.

This commit pins the base image to the digest of bionic-20200219, which,
based on the date of the commit that introduced to the dockerfile would
be the most newest ubuntu build and likely what the "rolling" tag
resolved to back then. Since this also an image from the pre-oci days of
ubuntu, this circumvents a bug in container-diff as well
(https://github.com/GoogleContainerTools/container-diff/issues/389)
2023-03-21 12:30:54 -04:00
..
1097 Add secondary group impersonation w/ !cgo support 2020-03-28 22:01:20 -07:00
Dockerfile_dockerignore_relative Fix integration tests for #776 2019-10-04 10:31:40 +02:00
Dockerfile_dockerignore_relative.dockerignore Fix integration tests for #776 2019-10-04 10:31:40 +02:00
Dockerfile_git_buildcontext Improve git buildcontext integration test 2019-05-23 16:12:20 +02:00
Dockerfile_hardlink_base Extract filesystem in order rather than in reverse 2018-08-29 15:44:38 -07:00
Dockerfile_onbuild_base Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_registry_mirror image: fix registry mirror setup 2020-02-16 11:41:51 +01:00
Dockerfile_relative_copy fix #1092 TestRelativePaths 2020-02-29 21:16:07 -08:00
Dockerfile_test_add chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
Dockerfile_test_add_404 add should fail on 40x 2020-06-20 09:49:11 +02:00
Dockerfile_test_add_dest_symlink_dir Add new test for copy to symlink which should fail 2019-11-15 11:23:04 -08:00
Dockerfile_test_add_url_with_arg Add integration test for add url with arg 2019-11-15 14:44:39 -08:00
Dockerfile_test_arg_blank_with_quotes Issue #439 add additional tests for quotes 2019-10-25 16:08:57 -07:00
Dockerfile_test_arg_from_quotes Issue #439 add additional tests for quotes 2019-10-25 16:08:57 -07:00
Dockerfile_test_arg_from_single_quotes Issue #439 add additional tests for quotes 2019-10-25 16:08:57 -07:00
Dockerfile_test_arg_multi Fix arg handling for multi-stage images in COPY instructions. (#621) 2019-03-22 12:24:43 -05:00
Dockerfile_test_arg_multi_empty_val Fix quote strip behavior for ARG values 2019-11-08 14:28:31 -08:00
Dockerfile_test_arg_multi_with_quotes Issue #439 double quotes in ARG value 2019-10-24 16:30:25 -07:00
Dockerfile_test_arg_secret Expand build argument from environment when no value specified 2020-01-30 12:01:06 +01:00
Dockerfile_test_arg_two_level Added integration test for multi level argument 2020-05-24 13:04:31 +02:00
Dockerfile_test_cache Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_cache_copy Adding missing integration test file 2019-11-04 09:30:58 -08:00
Dockerfile_test_cache_copy_oci Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
Dockerfile_test_cache_install Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_cache_install_oci Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
Dockerfile_test_cache_oci Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
Dockerfile_test_cache_perm Fix file mode bug (#618) 2019-03-18 13:28:24 -05:00
Dockerfile_test_cache_perm_oci Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
Dockerfile_test_cmd Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_complex_substitution Don't generate cache key, if not caching builds. 2020-04-13 16:50:13 -06:00
Dockerfile_test_copy Don't copy same files twice in copy integration tests (#273) 2018-08-03 10:01:29 -07:00
Dockerfile_test_copy_bucket Don't copy same files twice in copy integration tests (#273) 2018-08-03 10:01:29 -07:00
Dockerfile_test_copy_chown_nonexisting_user fix: getUIDandGID is able to resolve non-existing users and groups (#2106) 2022-07-12 10:21:37 -04:00
Dockerfile_test_copy_reproducible Don't copy same files twice in copy integration tests (#273) 2018-08-03 10:01:29 -07:00
Dockerfile_test_copy_same_file_many_times Always snapshot files in COPY and RUN commands 2018-08-23 18:23:39 -07:00
Dockerfile_test_copy_symlink create correct link across Multistage builds 2020-03-07 11:28:16 -08:00
Dockerfile_test_daemons Deflake the daemon test (#532) 2019-01-17 15:30:08 -05:00
Dockerfile_test_dangling_symlink Ignore the target of dangling symlinks. 2020-04-13 16:26:19 -06:00
Dockerfile_test_deleted_file_cached GetFSFromLayers 2020-01-17 13:36:23 -08:00
Dockerfile_test_dockerignore Fix .dockerignore for build context copies in later stages (#1447) 2020-10-08 12:47:14 -07:00
Dockerfile_test_env Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_expose Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_extract_fs Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_extraction Update test for link and file extraction to non-empty dir 2018-10-13 08:04:27 +09:00
Dockerfile_test_from_multistage_capital Fix #519 capital letter in stage names 2020-01-20 15:57:05 -08:00
Dockerfile_test_hardlink fixed digests for integration test 2018-11-19 15:26:02 -05:00
Dockerfile_test_ignore Add --ignore flag 2018-10-12 12:09:59 -07:00
Dockerfile_test_issue_519 add integration tests from GH issues 2020-02-27 11:04:55 -08:00
Dockerfile_test_issue_647 add integration tests from GH issues 2020-02-27 11:04:55 -08:00
Dockerfile_test_issue_684 Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00
Dockerfile_test_issue_704 add integration tests from GH issues 2020-02-27 11:04:55 -08:00
Dockerfile_test_issue_1039 Resolve filepaths before scanning for changes 2020-02-20 09:45:44 -08:00
Dockerfile_test_issue_1837 refactor: Make CLI argument names consistent (#2084) 2022-08-22 09:10:11 -04:00
Dockerfile_test_issue_2049 fix: Add test for issue #2049 (#2114) 2022-06-01 06:55:36 -04:00
Dockerfile_test_issue_2066 fix: Regression test for #2066 (#2096) 2022-05-18 06:35:35 -04:00
Dockerfile_test_label Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_maintainer Handle `MAINTAINERS` when passing `--single-snapshot`. 2020-04-13 15:54:27 -06:00
Dockerfile_test_meta_arg Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_metadata Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_multistage rename whitelist to ignorelist 2020-06-02 15:56:27 -07:00
Dockerfile_test_multistage_args_issue_1911 Fix resolving arguments over multi-stage build (#1928) 2022-02-10 09:22:21 -08:00
Dockerfile_test_mv_add Extract filesystem in order rather than in reverse 2018-08-29 15:44:38 -07:00
Dockerfile_test_onbuild Integration test refactoring (#126) 2018-05-15 13:42:35 -07:00
Dockerfile_test_parent_dir_perms Fix parent directory permissions (#619) 2019-03-19 12:40:15 -05:00
Dockerfile_test_registry Fully qualify images in dockerfile tests (#257) 2018-07-25 17:56:17 -07:00
Dockerfile_test_replaced_hardlinks Enable overwriting of links (solves #351) (#360) 2018-09-26 07:14:35 -07:00
Dockerfile_test_replaced_symlinks Fix #1067 - image no longer available 2020-02-20 08:40:38 -08:00
Dockerfile_test_run Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_run_2 Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_run_new lint 2020-06-06 00:30:07 -07:00
Dockerfile_test_run_redo add integration tests 2020-06-06 00:53:08 -07:00
Dockerfile_test_scratch Resolve env replacement for FROM command 2018-06-04 11:51:33 -07:00
Dockerfile_test_snapshotter_ignorelist Fix snapshotter ignore list; do not attempt to delete whiteouts of ignored paths (#1652) 2021-06-04 10:07:24 -07:00
Dockerfile_test_target Add --target flag for multistage builds (#255) 2018-07-30 09:43:23 -07:00
Dockerfile_test_user Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_user_home run: user LookupId 2020-03-05 16:44:55 +01:00
Dockerfile_test_user_nonexisting fix: getUIDandGID is able to resolve non-existing users and groups (#2106) 2022-07-12 10:21:37 -04:00
Dockerfile_test_user_run Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_volume Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_volume_2 Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_volume_3 Fix a bug in volume handling for multi-stage images. (#554) 2019-02-07 09:01:49 -06:00
Dockerfile_test_volume_4 This fixes a bug in the interaction between volumes in base images (#555) 2019-02-08 14:40:37 -06:00
Dockerfile_test_whitelist Only return filepath.SkipDir for directories 2018-11-19 15:56:11 -05:00
Dockerfile_test_workdir Make sure integration test has a relative workdir 2020-05-04 09:48:09 -07:00
Dockerfile_test_workdir_with_user fix(WORKDIR): use the config.User for the new dir permissions (#2269) 2022-09-28 21:18:40 -04:00