Commit Graph

449 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
133f37814c Merge pull request #79722 from randomvariable/etcd-world-executable
Make etcd world-executable in Docker image
2019-08-12 12:11:04 -07:00
Erik Wilson
2242718e17 Run ginkgo in foreground, elminiate wait & pgrep
Use bash process substitution for sending ginkgo output through tee,
allowing easy capture of the ginkgo exit code and avoiding use of wait
or pgrep.

For #78699
2019-07-31 00:53:08 -07:00
David Xia
fabfd950b1 cleanup: fix some log and error capitalizations
Part of https://github.com/kubernetes/kubernetes/issues/15863
2019-07-20 18:26:16 -04:00
Davanum Srinivas
88b0be7355 Update revision number for the image 2019-07-11 21:20:37 -04:00
Davanum Srinivas
f58f126715 Remove support for etcd2 from cluster/images/etcd image
Removes etcd2 code and images.
Etcd2 is no longer supported as of 1.13, so rollback and management
tools for etcd2 should not be shipped any longer. If it is still desired
the older versions of the image can be used.

Change-Id: I516c40067f0a57c42d2a6ab4612071c5e556a005
2019-07-11 21:20:24 -04:00
Naadir Jeewa
b1b7ea3229 etcd: Add comment re: SELinux
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
2019-07-04 10:13:37 +01:00
Naadir Jeewa
8c27ac488a etcd: Change perms in Makefile, not Dockerfile 2019-07-04 10:06:34 +01:00
Naadir Jeewa
bdcea67730 etcd: Ensure etcd binaries are world executable
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
2019-07-04 10:05:18 +01:00
Naadir Jeewa
3783aa5051 etcd: Allow Makefile to be used on SELinux systems
Adds check for SELinux and then adds the :z parameter to the volume
mounts in order to work on SELinux enabled systems such as Fedora.

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
2019-07-03 23:28:18 +01:00
Naadir Jeewa
42f566ae58 etcd: Ensure etcd binaries are world executable
Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
2019-07-03 16:49:25 +01:00
Dave Chen
c60181317e Address couple of issue on image build for ARM arch
- `GOARM` should not be hardcoded
- `GOARM` needn't be set when the `ARCH` is not `arm`
- make it also possible to build binary within `agnhost` dir as well
- fix image build failure when the user is root

Signed-off-by: Dave Chen <dave.chen@arm.com>
2019-07-03 16:56:23 +08:00
Kubernetes Prow Robot
e79dcc2174 Merge pull request #79284 from johnSchnake/conformanceGoRunner
Adds an optional golang runner to the conformance test image
2019-07-02 15:41:11 -07:00
Kubernetes Prow Robot
da0f51ffed Merge pull request #78820 from haosdent/fix_typos
Fix typos.
2019-07-01 15:09:20 -07:00
John Schnake
b3f5a086ab Adds an optional golang runner to the conformance test image
Adds a go app which runs the e2e tests with ginkgo.

 - Supports all the existing env vars of the bash script
 - Improved flow control to avoid and better report issues
regarding the process PID
 - Adds flags for modifying where to find the test binary and
ginkgo binary so that you can run it locally
 - Adds 3 flags for specifying extra args before the double-dash,
extra args after the double-dash, and the seperator to use between
values in those env vars. This allows setting arbitrary, complex
values for use on the command such as flags which include spaces
or other characters.
2019-07-01 16:26:13 -05:00
Kubernetes Prow Robot
ee4776d7ec Merge pull request #78889 from qingsenLi/k8s-190611
use klog.Info instead of klog.Infof when had no format
2019-06-19 13:02:20 -07:00
Haosdent Huang
7ce6e71891 Fix typos. 2019-06-11 01:52:14 +08:00
qingsenLi
872da8a467 use klog.Info instead of klog.Infof when had no format 2019-06-08 03:04:01 +08:00
Kenichi Omichi
bb95ec0f68 Enable API operation log on conformance job
To verify all conformance tests call GA APIs only without alpha,
beta APIs, this enables API operation log on the conformance job.
One concern is this makes e2e.log huge. So to consider it, the
original size of e2e.log is 112,909[1] before applying this.

[1]: https://gcsweb.k8s.io/gcs/kubernetes-jenkins/pr-logs/pull/70639/pull-kubernetes-conformance-image-test/1116565046130905089/artifacts/
2019-06-03 20:47:15 +00:00
Yuwen Ma
1f0f050fde Update etcd* version to use latest released images. 2019-05-13 17:28:40 -07:00
Yuwen Ma
23469d6b04 Rebase etcd-empty-dir-cleanup to debian-base
Busybox has more severe CVE issues.
This is part of the effort described in kep kubernetes/enhancements#900, we can't change the ibase image to distroless directly since a bash script is used.
Moved to debian-base and put it as a temp exception for now.
2019-04-12 15:59:23 -07:00
Kubernetes Prow Robot
f1acf4ad94 Merge pull request #75514 from tedyu/master
Use go idiomatic to replace loop
2019-04-04 00:40:50 -07:00
John Schnake
4fec7c7568 Finish saving test results on failure
The conformance image should be saving its results
regardless of the results of the tests. However,
with errexit set, when ginkgo gets test failures
it exits 1 which prevents saving the results
for Sonobuoy to pick up.

Fixes: #76036
2019-04-03 08:38:43 -05:00
yuwenma
529b20aadd rebase etcd to k8s debian-base 2019-03-29 18:59:55 -07:00
Kubernetes Prow Robot
8af1bf313e Merge pull request #75317 from jihoon-seo/patch-1
Update cluster/images/hyperkube/README.md
2019-03-20 20:35:37 -07:00
Ted Yu
793fd74a42 Use go idiomatic to replace loop 2019-03-20 11:40:26 -07:00
Kubernetes Prow Robot
66bb1215c7 Merge pull request #75310 from chi-xu/20190313
Correct a spelling error
2019-03-20 09:53:11 -07:00
Jihoon Seo
f5a66f8c13 Update cluster/images/hyperkube/README.md
Add missing period between 'components' and `hyperkube`.
Add line separation between 2 sentences.
2019-03-13 12:01:30 +09:00
xuchi
d0e15aed2c Correct a spelling error 2019-03-13 09:39:13 +08:00
ymlong
8e04d61488 Correcting spelling errors 2019-03-08 10:19:13 +08:00
Davanum Srinivas
200af47128 Stop waiting on conformance image pod when it fails
Change-Id: I516833167f8e0aaa0e7962c1d6bdbe2ca422dc6e
2019-03-07 11:03:05 -05:00
Kubernetes Prow Robot
bd8eeaaaaf Merge pull request #74468 from ixdy/bazel-cgo-crossbuild
bazel: improve multi-arch support for docker image artifacts
2019-03-06 20:35:11 -08:00
Jeff Grafton
8495f7c9ed bazel: add docker_push rules 2019-03-06 12:35:33 -08:00
Jeff Grafton
d7c2c2a606 bazel: refactor multi-arch container builds into starlark 2019-03-06 11:40:33 -08:00
Lubomir I. Ivanov
fe2301f17d conformace/run_e2e.sh: pass shellcheck and autodetect ginkgo nodes
- for ginkgo parallel mode pass -p to autodetect ginkgo nodes.
- disable parallel mode by default (false).
- use provider "skeleton" instead of "local".
- make run_e2e.sh pass shellcheck.
2019-03-05 01:32:57 +02:00
Kubernetes Prow Robot
79e8a29544 Merge pull request #74852 from dims/expand-reviewers-approvers-add-label
Expand reviewers/approvers and add labels for conformance image
2019-03-04 13:25:50 -08:00
Jeff Grafton
c98b3edb88 bazel: make conformance and hyperkube images multiarch 2019-03-03 21:09:22 -08:00
Davanum Srinivas
b3adf5bd0d Expand reviewers/approvers and add labels for conformance image
Change-Id: I6e13d262a8bf97ada89227a853debe58876c212a
2019-03-02 13:46:27 -05:00
Davanum Srinivas
87e87dd25b Apparently conformance tests have to run serially
There are 10+ conformance tests marked [Serial], So we can't run things
in parallel by default.

Change-Id: I58afbb356899fb38caf4f9f6704bfb47f745b338
2019-03-02 13:30:00 -05:00
Kubernetes Prow Robot
3bb22edef8 Merge pull request #74808 from dims/showcase-the-available-options-in-manifest
Showcase conformance images options in the manifest
2019-03-01 20:34:53 -08:00
Kubernetes Prow Robot
738d29b96c Merge pull request #74767 from yuwenma/rebase-image
Rebase etcd-version-monitor base image to distroless.
2019-03-01 19:14:24 -08:00
Aaron Crickenberger
388a345efc Use no skip regex for conformance 2019-03-01 16:35:27 -08:00
Davanum Srinivas
da566ad647 Showcase conformance images options in the manifest
The Dockerfile has a few more options, let's surface that in the
manifest. Also use the same defaults in the manifest as the Dockerfile
itself.

Change-Id: Ib7419cf7999430db15f39ac414c80ee362fcda76
2019-03-01 16:39:28 -05:00
Davanum Srinivas
9d7d682760 Better detection of binaries for conformance image
Change-Id: Id33a0827e8cb1e3369544eea3335c80c89780786
2019-02-28 22:00:28 -05:00
Yuwen Ma
fd2b57926e Rebase etcd-version-monitor base image to distroless. 2019-02-28 17:06:37 -08:00
John Schnake
03d0e86117 Add support for dryRun option to kube-conformance image
A common issue users run into is wanting a list of tests
a certain regexp will run, without actually running it.

ginkgo supports this with the dryRun flag but it was not
exposed via the kube-conformance image. This change
will set the flag if the E2E_DRYRUN environment variable
is set.

Fixes #74727
2019-02-28 09:21:04 -06:00
Davanum Srinivas
23b33f5c85 Switch to k8s.gcr.io (from staging)
Change-Id: Ib0d6f681be3537f0cbfcae1dc254f1c42a04be66
2019-02-27 08:54:45 -05:00
Davanum Srinivas
87d9903aaf Add a script to run the conformance image and pull results
Change-Id: I1eb673fe37b5e8a719f9095473765c80fb7f2347
2019-02-27 07:38:43 -05:00
Davanum Srinivas
94ad1dfb11 Better manifest for running conformance image
Change-Id: I137180ed781edd4a9877cabe039e40a72aa71366
2019-02-26 10:29:12 -05:00
Davanum Srinivas
069eeb541b Simpler make commands for ginkgo/kubectl/e2e.test
Change-Id: I78cff10231eabd53b1fc7bdd1526c861179e135a
2019-02-26 09:18:05 -05:00
Kubernetes Prow Robot
8993fbc543 Merge pull request #74328 from daixiang0/delete-blank
delete all duplicate empty blanks
2019-02-23 01:43:58 -08:00