Commit Graph

67 Commits

Author SHA1 Message Date
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
Yu-Ju Hong
59741bdfbd Remove rkt references in the codebase 2018-04-06 12:02:11 -07:00
Sen Lu
b01d2ba048 purge all the -v references from e2e.go 2018-03-06 20:36:06 -08:00
Ryan Hitchman
d295ca1134 Add support for make verify WHAT=typecheck.
This will be used to make the typecheck job emit junit and avoids
duplicating the rest of the verify logic.
2018-03-01 15:03:24 -08:00
Mike Danese
efa63b7a58 bzl: use --local_test_jobs
We originally seperated build and test so that only 4 integration tests
would be run at a time, but we didn't want to slow down build, however
we didn't know --local_test_jobs existed. This achieves the same result
but more efficiently.
2018-02-20 10:57:40 -08:00
Mike Danese
d6f0e77fea bzl: make integration tests actually work 2018-02-05 15:08:52 -08:00
Cao Shufeng
96cb7f293d fix make quick-verify 2018-01-27 11:26:11 +08:00
Christoph Blecker
f801f3f174 Change flags to variables so that they can be passed through make 2018-01-25 13:30:30 -08:00
Christoph Blecker
b57845341f Force use of Makefile for update 2018-01-22 15:11:16 -08:00
Jonathan Basseri
30b89d830b Move scheduler code out of plugin directory.
This moves plugin/pkg/scheduler to pkg/scheduler and
plugin/cmd/kube-scheduler to cmd/kube-scheduler.

Bulk of the work was done with gomvpkg, except for kube-scheduler main
package.
2018-01-05 15:05:01 -08:00
Ghe Rivero
538b0a6eac Fix Makefile doc for quick-release
In the Makefile doc for quick-release target, it says:
KUBE_FASTBUILD: Whether to cross-compile for other architectures. Set to 'true' to do so.

If should be "Set to false"
2017-11-02 09:58:37 +01:00
Maru Newby
adc338d330 Remove all traces of federation 2017-10-26 13:37:37 -07:00
David McMahon
47dc6fc53f Create new targets for running in existing containers (GCB).
1. release-in-a-container - Like 'make release' but in a container.
2. cross-in-a-container - Like 'make cross' but in a container.
3. package-tarballs - (NEW) To package tarballs with a docker dependency

'release-in-a-container' is currently only for testing and is not slated to
be used, but may be useful for testing in some scenarios.

'cross-in-a-container' is meant to be run from the kube-cross image alone.
'package-tarballs' is a companion target that runs from a docker image
to package up the tarballs and images (from cross-in-a-container) for a release.
2017-10-11 15:44:46 -07:00