Commit Graph

526 Commits

Author SHA1 Message Date
Stephen Augustus
e64169d6b5 build: Enable kube-cross push/pull from K8s Infra GCR
- Search/replace Google Infra kube-cross locations for K8s Infra
- Update kube-cross make targets
  - Don't attempt to pre-pull image (docker build --pull)
    This prevents CI failures when the image under test doesn't exist
    yet in the registry.
  - 'make all' now builds and pushes the kube-cross image
  - Allow 'TAG' to be specified via env var
  - Use 'KUBE_CROSS_VERSION' to represent the kube-cross version
  - Tag kube-cross images with both a kubernetes version
    ('git describe') and a kube-cross version
- Add a GCB (Google Cloud Build) config file (cloudbuild.yaml)

Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-02-26 16:51:01 -05:00
Kubernetes Prow Robot
2e0760c659
Merge pull request #87611 from claudiubelu/test-images/updates-readme
test images: Adds Image Promoter details in the README
2020-02-21 18:30:48 -08:00
Kubernetes Prow Robot
937008e3ac
Merge pull request #81226 from claudiubelu/tests/reduce-to-agnhost-part-4
tests: Replaces images used with agnhost (part 4)
2020-02-20 01:13:03 -08:00
Claudiu Belu
f7942290af tests: Replaces images used with agnhost (part 4)
Quite a few images are only used a few times in a few tests. Thus,
the images are being centralized into the agnhost image, reducing
the number of images that have to be pulled and used.

This PR replaces the usage of the following images with agnhost:

- resource-consumer-controller
- test-webserver
2020-02-18 16:29:49 -08:00
Benjamin Elder
becc4b7d57 remove unused manifest-tool rules 2020-02-13 14:58:26 -08:00
Mike Danese
3aa59f7f30 generated: run refactor 2020-02-07 18:16:47 -08:00
Kubernetes Prow Robot
9c1e124b15
Merge pull request #87823 from tallclair/test-tokens
Ensure testing credentials are labeled as such
2020-02-06 17:47:29 -08:00
Tim Allclair
9d3670f358 Ensure testing credentials are labeled as such 2020-02-04 10:36:05 -08:00
Chao Xu
6acc75b418 Only set admission review reponse patch type if the patch is not empty 2020-02-03 10:55:31 -08:00
Claudiu Belu
00cd8c8d92 test images: Adds Image Promoter details in the README
We have enabled the Image Promoter on the k/k test E2E images. This updates the
kubernetes/test/images/README.md file to include information about the images
it runs for, and how to promote the new image from the staging registry to the
regular one.

Cleans up some TODO items, since the Image Centralization Part 4 merged.
2020-02-03 00:13:06 -08:00
Kubernetes Prow Robot
11aa07e150
Merge pull request #87385 from krzysied/agnhost_webhook_sidecar
Agnhost webhook sidecar
2020-01-30 16:59:02 -08:00
Kubernetes Prow Robot
4ee00204ae
Merge pull request #87647 from claudiubelu/image-promoter/cleanup-manifest-list
Image Promoter: Cleans manifest list
2020-01-29 22:11:36 -08:00
Mike Danese
d55d6175f8 refactor 2020-01-29 08:50:45 -08:00
Krzysztof Siedlecki
3593fc69ab bumping agnhost version to 2.10 2020-01-27 11:59:03 +01:00
Krzysztof Siedlecki
dc5791b47a adding sidecar injecting webhook 2020-01-27 11:59:03 +01:00
Kubernetes Prow Robot
ca16ebfa49
Merge pull request #87106 from ialidzhikov/enh/golang@1.13.6
Update to golang@1.13.6
2020-01-15 21:21:15 -08:00
Kubernetes Prow Robot
b2c61fa8d3
Merge pull request #87162 from BenTheElder/image-push-dir
set test image cloudbuild directory
2020-01-14 17:22:47 -08:00
Kubernetes Prow Robot
2b9d0fd902
Merge pull request #87153 from mkumatag/multi-arch-nonroot
Multi arch for nonroot image
2020-01-14 17:22:36 -08:00
Benjamin Elder
e6234519e1 set test image cloudbuild directory 2020-01-13 11:38:19 -08:00
Manjunath A Kumatagi
f6d58ae3a9 Multi arch for nonroot image 2020-01-13 23:09:39 +05:30
Kubernetes Prow Robot
e265afa2cd
Merge pull request #81170 from claudiubelu/test-images/centralize-image-to-agnhost-part-4
Centralizes images into agnhost (part 4)
2020-01-13 09:37:38 -08:00
ialidzhikov
e1f7b16fa6 Update to golang@1.13.6
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-01-12 02:17:40 +02:00
Claudiu Belu
26ea420c0e Image Promoter: Cleans manifest list
The manifest list is stateful, which means that the same list will get amended
with each successive image published. That's unintended, and can lead to the
wrong image being pulled from the manifest list.

Resets the manifest list before amending new images into it.
2020-01-10 00:35:38 -08:00
Kubernetes Prow Robot
75a8715145
Merge pull request #84058 from claudiubelu/test-image-publishing
test images: Adds E2E test image automated build
2020-01-09 21:58:35 -08:00
Claudiu Belu
a3b90584a1 Image Promoter: Bump timeout limit
50 minutes are not enough for building all the conformance images.
Bumps the timeout limit to 90 minutes.
2020-01-07 21:31:47 -08:00
Claudiu Belu
30058c9d35 Image Promoter: Remove -it from docker command
It seems that the Image Promoter is running containers without the -t flag, which causes the error:

the input device is not a TTY

Removing the -it from the docker command in kubernetes/test/images/image-util.sh solves this.
2020-01-07 15:34:47 -08:00
Kubernetes Prow Robot
9dab44f23c
Merge pull request #86707 from ialidzhikov/enh/golang@1.13.5
Update to golang@1.13.5
2020-01-07 01:12:18 -08:00
Claudiu Belu
4c51eb9063 test images: Image Promoter fixes
Prior to the Image Centralization part 4 (https://github.com/kubernetes/kubernetes/pull/81170),
a PR merged that enables the Image Promoter to run on the k/k test images.

The Image Promoter currently only builds the Conformance-related images, but the
Image Centralization part 4 centralized some of those images into agnhost, so they
need to be removed from the conformance_images list.

Additionally, https://github.com/kubernetes/kubernetes/pull/81226 proposes mounttest-user
image to be removed, and RunAsUser to be used in tests instead.

The image used by the Image Promoter (gcr.io/k8s-testimages/gcb-docker-gcloud:v20190906-745fed4)
is based on busybox, and thus, the sed binary is actually busybox. image-util.sh calls
kube::util::ensure-gnu-sed several times, which ensures that a GNU sed binary exists
(it checks by greping GNU in its --help output). Obviously, it won't match the busybox sed
binary. But the sed usage in image-util.sh is fairly simple, and the busybox sed is sufficient.

Bumps image versions for: jessie-dnsutils, nonewprivs, resource-consumer, sample-apiserver. These
images are included in the conformance_images that are being built by the Image Promoter, so
we're bumping them just to make sure we're not breaking anything and cause all the CIs to fall.
We're going to bump the image versions used in tests in a subsequent PR. The image version was not
bumped for: agnhost, kitten, nautilus, as they were already bumped by the Image Centralization part 4
PR.
2020-01-06 09:08:51 -08:00
ialidzhikov
f438def93d Update to golang@1.13.5
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2019-12-30 13:17:17 +02:00
Kubernetes Prow Robot
9b59ba4ef8
Merge pull request #81895 from praseodym/fix-staticcheck-test/images
Fix staticcheck failures for test/images
2019-12-30 00:09:39 -08:00
Claudiu Belu
72d66be439 test images: Adds E2E test image automated build
In order for the E2E test images to be automatically built and published
to the staging registry (from which they will be promoted to the regular
E2E test registry), the cloudbuild.yaml file has been added.

The file was added in conformance with [1].

Adds the ability to build all test images:

make -C test/images WHAT=all-images

[1] https://github.com/kubernetes/test-infra/blob/master/config/jobs/image-pushing/README.md
2019-12-28 09:15:03 -08:00
Jordan Liggitt
cad5de706a Build sample-apiserver image using kubernetes 1.17 / go 1.13 2019-12-16 11:06:11 -05:00
Mark Janssen
a634e254c1 Fix staticcheck failures for test/images
Errors from staticcheck:
test/images/agnhost/dns/common.go:79:6: func runCommand is unused (U1000)
test/images/agnhost/inclusterclient/main.go:75:16: using time.Tick leaks the underlying ticker, consider using it only in endless functions, tests and the main package, and use time.NewTicker here (SA1015)
test/images/agnhost/net/nat/closewait.go:41:5: var leakedConnection is unused (U1000)
test/images/agnhost/netexec/netexec.go:157:17: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:250:18: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:317:18: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:331:19: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:345:19: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:357:19: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:370:19: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:380:9: this value of err is never used (SA4006)
test/images/agnhost/netexec/netexec.go:381:17: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:386:17: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/pause/pause.go:43:23: syscall.SIGKILL cannot be trapped (did you mean syscall.SIGTERM?) (SA1016)
test/images/agnhost/serve-hostname/serve_hostname.go:125:15: the channel used with signal.Notify should be buffered (SA1017)
test/images/agnhost/webhook/patch_test.go:131:13: this value of err is never used (SA4006)
test/images/pets/peer-finder/peer-finder.go:155:6: this value of newPeers is never used (SA4006)
2019-12-15 22:34:27 +01:00
tanjunchen
8f4a262d61 fix 1-12 number urls 2019-11-21 11:17:46 +08:00
Kubernetes Prow Robot
c97d90546a
Merge pull request #84370 from AnitaNayak/anitanayak
Building peer-finder Image on s390x
2019-11-07 04:34:43 -08:00
Kubernetes Prow Robot
695c3061dd
Merge pull request #82809 from liggitt/go-1.13-no-modules
update to use go1.13.4
2019-11-06 17:02:43 -08:00
Jordan Liggitt
e3ff39ffa0 Update build to go1.13.4 2019-11-06 17:39:05 -05:00
Claudiu Belu
3247f0a814 tests: Fixes minor agnhost error 2019-11-05 15:21:58 -08:00
Kubernetes Prow Robot
2999b8bebb
Merge pull request #83055 from bclau/tests/agnhost-guestbook-app
tests: Adds guestbook app subcommand in agnhost
2019-11-04 15:28:10 -08:00
Kubernetes Prow Robot
7b6369c803
Merge pull request #84249 from odinuge/bump-shellcheck
Bump shellcheck to v0.7.0
2019-11-04 06:19:40 -08:00
Kubernetes Prow Robot
da5b90a8c3
Merge pull request #84045 from bclau/tests/agnhost-netexec-changes
tests: Extends agnhost netexec udp buffers
2019-10-30 18:23:36 -07:00
John Schnake
081b9f206d Adds some basic READMEs to some of the test images
Clarifies the use/purpose of some of the test images for easier
discovery/use in the future.
2019-10-25 11:33:41 -05:00
anitanayak
7dc3057d4d Building peer-finder on s390x 2019-10-25 09:03:47 -07:00
Claudiu Belu
8f099010a5 Centralizes images into agnhost (part 4)
Centralizes the following images into agnhost:

- dnsutils
- mounttest
- resource-consumer-controller
- test-webserver

Adds CoreDNS to agnhost image, which can be used in some DNS related tests (dnsmasq is Linux-only).

Adds Windows support to mounttest.

Bumps agnhost version to 2.9.
Bumps kitten version to 1.1.
Bumps nautilus version to 1.1.
2019-10-24 15:02:40 -07:00
Claudiu Belu
9dd79321e0 tests: Adds guestbook app subcommand in agnhost
The redis version has been bumped to version 5.0.5, but the maximum version supported on
Windows is 3.2. This can lead to failing tests, the output and behaviour can be different
(see #80516). In order to prevent such failures, the amount of times the Redis image is
used can be reduced.

This commit adds the guestbook subcommand to agnhost, which can be used to emulate the
Guestbook application created by the test "should create and stop a working application".

Bumps agnhost image VERSION.
2019-10-24 07:51:28 -07:00
Odin Ugedal
d467b8ea14
Fix shellcheck failures SC2128 2019-10-23 22:47:46 +02:00
Christoph Blecker
e570e3e88d
Update to use go1.12.12 2019-10-18 10:37:34 -07:00
Claudiu Belu
8880a4f74f tests: Extends agnhost netexec udp buffers
Currently, the UDP buffer sizes are set to 1024 bytes. Larger requests will not be
read entirely by the UDP handlers, which can lead to tests relying on this to fail.
2019-10-16 04:21:45 -07:00
Timothy St. Clair
97055841b1 Audit of test/* OWNERS files 2019-10-10 15:52:51 -05:00
Kubernetes Prow Robot
3db6d3abcf
Merge pull request #83551 from dims/move-external-facing-kubelet-apis-to-staging
Move external facing kubelet apis to staging
2019-10-10 13:41:36 -07:00