Commit Graph

79 Commits

Author SHA1 Message Date
Tim Hockin
457e8778f7 Makefile: emit codegen info via kube::log::status 2022-02-27 11:33:52 -08:00
Kubernetes Prow Robot
e9760925f9 Merge pull request #108369 from thockin/makefile-errexit
Makefile: use errexit, pipefail, and nounset
2022-02-26 17:45:16 -08:00
Tim Hockin
9ad4a659ae Makefile: use errexit, pipefail, and nounset 2022-02-26 12:32:48 -08:00
Tim Hockin
7a3dded74d Makefile: remove superfluous @ 2022-02-26 12:17:45 -08:00
Danielle Lancashire
9e5fac5bb2 make: test-e2e-node: default to containerd
Since removing dockershim, `make test-e2e-node` will fail by default as
there is no provided container runtime endpoint.

This commit defaults us to using containerd's default socket path as the
local test target, rather than failing hard.
2022-02-01 16:36:06 +01:00
Jonathan Lebon
3ebd93cd02 test-e2e-node: support pure SSH mode
Right now, `run_remote.go` only supports GCE instances. But actually
running the tests is completely independent of GCE and could work just
as well on any SSH-accessible machine.

This patch adds a new `--mode` switch, which defaults to `gce` for
backwards compatibility, but can be set to `ssh`. In that mode, the GCE
API is not used at all, and we simply connect to the hosts given via
`--hosts`.

This is still better than `run_local.go` because the latter mixes build
environment with test environment, which doesn't fit well with
container-optimized operating systems.

This is part of an effort to setup the e2e node tests on Fedora CoreOS
(see https://github.com/coreos/fedora-coreos-tracker/issues/990).

Patch best viewed with whitespace ignored.
2021-11-22 10:13:15 -05:00
Jonathan Lebon
e0723c1e64 test-e2e-node: add SSH_OPTIONS
This allows overriding the default options.
2021-11-22 10:13:13 -05:00
Namanl2001
d9bd480edd adding comment in makefile
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-11-16 01:24:39 +05:30
Benjamin Elder
71071d13ab remove make rule for test-e2e-kubeadm
this target depended on a broken binary and is clearly unused

kubeadm e2e development should be done with: https://github.com/kubernetes/kubeadm/tree/main/kinder
2021-11-02 12:04:14 -07:00
Namanl2001
952e2732d5 adding make comment
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-30 01:12:32 +05:30
Namanl2001
1b69338460 amending desc in makefile
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 21:57:42 +05:30
Namanl2001
ebb2f426c3 adding SSH_KEY desc to makefile
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 00:21:37 +05:30
sure freeing go
fa774535eb Simplify the repeat lines in build/root/Makefile 2021-04-14 17:33:51 +08:00
Kubernetes Prow Robot
e49ba9dff6 Merge pull request #99740 from aramprice/make-kube-cross-image-registry-name-configurable
Add docs for KUBE_BASE_IMAGE_REGISTRY, update code comment
2021-04-08 15:59:26 -07:00
Adolfo García Veytia (Puerco)
999a1f5c76 Add KUBE_BUILD_CONFORMANCE on package-tarballs target
Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
2021-03-25 18:20:36 -06:00
Sascha Grunert
273fdd7686 Build conformance issue when building via cross or cross-in-a-container
This enables building the conformance image when running `make
cross-in-a-container`, which is being used by the release engineering
tooling.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-03-15 15:29:04 +01:00
aram price
c4bae5658f Update build/README.md and build/root/Makefile
* build/README.md includes info about KUBE_BASE_IMAGE_REGISTRY
* build/root/Makefile contains the correct default value for KUBE_BASE_IMAGE_REGISTRY
2021-03-12 14:21:56 -08:00
Benjamin Elder
b7f1cf7683 remove bazel from the makefile 2021-03-07 13:01:17 -08:00
Benjamin Elder
a3a650f246 don't default to building conformance image for fastbuilds (quick-release)
continue defaulting to building it for release builds
2021-02-23 17:41:27 -08:00
Kubernetes Prow Robot
d7cb340bc6 Merge pull request #83268 from odinuge/e2e_node_timeout
Add timeout config for node_e2e tests
2021-01-28 19:33:40 -08:00
Tim Hockin
6fe6941f2b 'make clean_generated' in staging, too 2021-01-25 10:27:18 -08:00
Tim Hockin
83dc781d29 Make: init variables
Driving towards the goal of `make --warn-undefined-variables` working.
2021-01-25 10:15:58 -08:00
Sascha Grunert
975b8d352e Use /usr/bin/env bash in Makefiles and scripts
This allows the execution of the Makefiles from distributions which do
have `bash` in a different path.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-08-16 21:13:18 +02:00
Odin Ugedal
6dfdf05eaa Add timeout config for node_e2e tests
Some test suits use more than the default 45m, resulting in the test to
crash.
2020-08-09 15:45:56 +02:00
Ed Bartosh
667461ace8 Makefile: update test-e2e-node help 2020-07-22 01:51:06 +03:00
Amim Knabben
1044840f6e Documenting TEST_ARGS on Node E2E helper 2020-07-19 14:37:28 -04:00
Kubernetes Prow Robot
22a4c2cda1 Merge pull request #85804 from weibaohui/patch-1
correction of executable path doc
2020-03-17 22:26:47 -07:00
Davanum Srinivas
598c279ecc tolerate when bazel shutdown errors out
pull-kubernetes-e2e-gce-rbe are still failing with the following:
```
INFO: Waited 10 seconds for server process (pid=72) to terminate.
FATAL: Attempted to kill stale server process (pid=72) using SIGKILL, but it did not die in a timely fashion.
make: *** [Makefile:626: bazel-release] Error 36
make: Leaving directory '/home/prow/go/src/k8s.io/kubernetes'
```

we have added a pkill just after the line for bazel shutdown, so let's
continue to give the pkill a chance to run.
2020-02-08 21:47:12 -05:00
Davanum Srinivas
36785bedfc Ensure bazel is really brought down 2020-02-07 13:14:44 -05:00
Davanum Srinivas
fc719c13f5 Explicitly shutdown bazel after the target finishes 2020-02-05 18:16:34 -05:00
weibaohui
661699a301 fix executable path
fix executable path by remove `/go`
2019-12-02 23:23:54 +08:00
Benjamin Elder
83c56a0373 remove hack/e2e.go 2019-11-03 19:36:59 -05:00
Davanum Srinivas
138571b23f Remove hyperkube from release artifacts
Change-Id: Ie09248d6fc688ffffbeb0271824817a5129346a0
2019-10-03 13:33:17 -04:00
Kubernetes Prow Robot
3a55875465 Merge pull request #81512 from odinuge/preemptible-node-tests
Add support for preemptible instances in node-e2e
2019-09-20 22:55:24 -07:00
Odin Ugedal
e20c2b1f32 Add support for preemptible instances in node-e2e
Preemptible instances are cheaper, and the small chanse of a vm being
killed doesn't matter when running during development. This is a
tradeoff the user should be able to decide on.

More info here:
https://cloud.google.com/compute/docs/instances/preemptible

The default setting is false, so unless setting
PREEMPTIBLE_INSTANCES=true, everything will behave as before.

Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-08-17 13:09:45 +02:00
C Anthony Risinger
dd90405b26 Add gen_openapi target to top-level Makefile.
Could be further expanded with `gen_deepcopy`, `gen_defaulter`, `gen_conversion`, and `gen_bindata` targets, if useful.
2019-08-08 09:36:04 -07:00
hui luo
97087c66f7 Allow customize registry name of base and release images
default behavior does not change, it uses k8s.gcr.io by default
added two vars: KUBE_DOCKER_REGISTRY, KUBE_BASE_IMAGE_REGISTRY.
KUBE_BASE_IMAGE_REGISTRY is for base image registry of server binaries
KUBE_DOCKER_REGISTRY is for released images registry

user can interact with them by:
`KUBE_DOCKER_REGISTRY=### KUBE_BASE_IMAGE_REGISTRY=### make quick-release`

Signed-off-by: Hui Luo <luoh@vmware.com>
2019-07-25 17:43:01 -07:00
Youbing Li
359d0e31ea Fixes 77527 - Update Makefile about the usage of building unstripped binaries 2019-05-08 22:51:11 -04:00
Kubernetes Prow Robot
0c32c22b2e Merge pull request #75546 from fabriziopandini/e2e-kubeadm-first-class
Implement make test-e2e-kubeadm
2019-04-05 04:59:19 -07:00
Jordan Liggitt
2ea3cbdcbc Update hack scripts to use go mod 2019-04-03 10:19:39 -04:00
fabriziopandini
2cb2a979d4 e2e-kubeadm-first-class 2019-03-28 16:29:56 +01:00
SataQiu
e0c8cc172d fix a minor bug for update 2019-03-13 17:27:37 +08:00
Maciej Szulik
a3fe72b9a8 Add examples how to run make test-cmd specific tests 2019-03-07 10:05:20 +01:00
Thomas Runyon
a502b96326 changed cleanup function name to not overwrite actualy cleanup() function 2019-02-22 21:01:54 -05:00
Thomas Runyon
aeb92ee754 Source hack/lib/init.sh for running make test-cmd 2019-01-29 13:10:55 -05:00
Thomas Runyon
163844cb13 Added ability to execute subsets of cli tests 2019-01-15 16:20:50 -05:00
Jeff Grafton
e34a0619ea Only build tests with bazel test --config=unit 2019-01-08 14:47:32 -08:00
Davanum Srinivas
6830bad2a6 upstream heptio/kube-conformance
Pick up some code from https://github.com/heptio/kube-conformance
Fix up build scripts for the new conformance image
Fix Header template and Copyright to make verify job go green
update README and add execute permissions for script

Change-Id: Ib6509acd816cc2fb3a516bfb8e0ff9e32bff8f79
2018-10-12 15:33:15 -04:00
Benjamin Elder
037fabd842 add make targets for building server images 2018-08-31 14:31:21 -07:00
Tim Hockin
cb1332db06 Get rid of verify_generated_files
It doesn't work right, we autogenerate on-demand, and we want to stop
checking them in.
2018-06-04 15:04:21 -07:00