Kubernetes Prow Robot
5b1e538759
Merge pull request #108378 from thockin/makefile-use-loglib
...
Makefile: emit codegen info via kube::log::status
2022-02-27 14:27:18 -08:00
Kubernetes Prow Robot
6d7c252906
Merge pull request #108377 from thockin/makefile-check-restarts
...
Makefile: avoid redundant work upon make restart
2022-02-27 13:25:17 -08:00
Tim Hockin
457e8778f7
Makefile: emit codegen info via kube::log::status
2022-02-27 11:33:52 -08:00
Tim Hockin
88fef96e75
Makefile: avoid redundant work upon make restart
...
Only build and run go2make on the first pass. If that generates a new
GO_PKGDEPS_FILE, make will restart the whole process and set MAKE_RESTARTS to
a numeric value.
We can use this to avoid re-running go2make, which saves a few seconds
each build.
2022-02-27 10:50:19 -08:00
Tim Hockin
30b20f184e
Use build.sh to build go2make
...
This allows common flags to be passed in (upcoming commits).
2022-02-27 10:28:44 -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
Nabarun Pal
0ab03d3d5b
dependencies: remove go-bindata
...
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-29 19:16:51 +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
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -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
Carlos Panato
8b5bf8ef91
[go1.15] Update to go1.15.8
...
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-02-06 15:55:39 +01: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
Carlos Panato
e76fc62258
[go1.15] Update to go1.15.7
...
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-01-27 11:43:01 +01:00
Tim Hockin
6fe6941f2b
'make clean_generated' in staging, too
2021-01-25 10:27:18 -08:00
Tim Hockin
876c9f0d8c
Rename _examples to examples
...
The alternative to this would be to special-case code-generator. Since
it legit wants codegen, it seems wrong to make it be _examples (which tools
should ignore).
Make examples an "internal module" so the main go.mod for
k8s.io/code-generator does not get too polluted.
2021-01-25 10:20:46 -08:00
Tim Hockin
1b04d05423
Makefile: add debug on generated files
2021-01-25 10:15:59 -08:00
Tim Hockin
8703dc6e1c
Makefile: remove redundant line
...
This same dep is expressed a few lines later in the "real" recipe.
2021-01-25 10:15:58 -08:00
Tim Hockin
e46810bca5
Make: $(foo:-) is shell, not makefile syntax
...
Driving towards `make --warn-undefined-variables`.
2021-01-25 10:15:58 -08:00
Tim Hockin
ee170145b2
Make: prefix magic go-deps variables with GODEPS
...
This makes them easier to see and find.
Driving towards `make --warn-undefined-variables`.
2021-01-25 10:15:58 -08:00
Tim Hockin
371d602a05
Make: change $(eval) in a comment
...
Because this comment is in a `define` which is later evaluated, the
syntactical `$(eval)` is treated like a variable exapansion. Just
change the comment.
Driving towards `make --warn-undefined-variables`.
2021-01-25 10:15:58 -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
Jordan Liggitt
8bac4ef9ad
Drop runs-per-test for unit tests
2021-01-21 13:58:00 -05:00
Mike Danese
b624868386
bump repo-infra to 0.2.0
...
Change-Id: Id4fa13ca3cf092867bb0973294605962a8e5019c
2021-01-07 13:51:03 -08:00
Mike Danese
7d7852d3ef
bump bazel to 3.4.1
...
Change-Id: I7ae75acba5518782a99ede2d896a787238d7b744
2021-01-07 13:51:03 -08:00
Tim Hockin
6f0f7aad46
Fix Makfile cut-paste comment errors
2020-12-22 21:37:42 -08:00
Stephen Augustus
2407a70cc7
[go1.15] Update to go1.15.5
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-11-23 20:49:56 -05:00
Stephen Augustus
eeb31f1a3c
[go1.15] build: Update to k/repo-infra@v0.1.3 (supports go1.15.5)
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-11-23 20:40:44 -05:00
Tim Hockin
54e2748e13
Pass all packages to conversion-gen
...
As per #96015 and other reports, conversion-gen does the wrong thing if
dependent packages are not ALSO being re-generated. It creates new
versions of generated files that have missing conversions.
This change passes all packages as "extras" which will be parsed but not
regenerated (default already does exactly this).
2020-10-30 22:22:57 -07:00
Mike Danese
bdadb2a187
make kube::util::find-binary not dependent on bazel-out/ structure
...
Implement an aspect that outputs go_build_mode metadata for go binaries,
and use that during binary selection.
2020-09-11 13:19:38 -07:00
Stephen Augustus
bb1855bf11
bazel: Replace --features with Starlark build settings flag
...
All --features and --define flags
Deprecated in: 0.23.0
To be removed in: 0.25.0
ref: https://github.com/bazelbuild/rules_go/wiki/Deprecation-schedule
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-09-11 13:19:37 -07:00
Stephen Augustus
a4a98f440c
[go1.15] Update to go1.15.2
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-09-11 13:15:12 -07:00
Stephen Augustus
ebd8ccc6bb
[go1.15] build: Update to k/repo-infra@v0.1.1 (supports go1.15.2)
...
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-09-11 13:14:43 -07:00
Aaron Crickenberger
a69964e3a4
Run unit tests 2 instead of 3 times via bazel
2020-09-10 12:52:28 -07:00
Jordan Liggitt
b4189f4d94
Stop ignoring unit test flakes, require multiple successful passes
2020-09-03 22:43:19 -04:00
Mike Danese
54955f7fa7
remove --verbose_failures from .bazelrc
2020-09-02 12:19:15 -07:00