Kubernetes Prow Robot
d62a9b2179
Merge pull request #99773 from saschagrunert/build-memory
...
Change KUBE_PARALLEL_BUILD_MEMORY to 20 GiB
2021-03-09 16:08:07 -08:00
Morten Torkildsen
21fba79d45
Promote PDBs to GA
2021-03-09 10:29:11 -05:00
Benjamin Elder
8f3cbc923a
drop bazel logic from hack/lib/golang.sh
2021-03-07 13:11:29 -08:00
Benjamin Elder
03576473ce
don't search bazel output paths for binaries
2021-03-07 12:47:00 -08:00
Kubernetes Prow Robot
90851a0fb5
Merge pull request #99905 from BenTheElder/shellchecked
...
update verify-shellcheck to v0.7.1, fix nits, multi-arch digest pinning, fix new lint errors
2021-03-06 22:17:53 -08:00
Benjamin Elder
a0cd54a7f1
fix trivial shell quoting issues surfaced by shellcheck v0.7.1
2021-03-06 13:19:17 -08:00
Swetha Repakula
a9891b4b9b
Graduate EndpointSlice API to GA
...
* Removes discovery v1alpha1 API
* Replaces per Endpoint Topology with a read only DeprecatedTopology
in GA API
* Adds per Endpoint Zone field in GA API
2021-03-05 12:02:41 -08:00
Kubernetes Prow Robot
2e39df89ac
Merge pull request #97743 from dims/support-m1-macbook-darwin/arm64-as-client
...
Support M1 MacBooks darwin/arm64 on the client-side
2021-03-04 04:18:09 -08:00
Sascha Grunert
abf85d70c2
Change KUBE_PARALLEL_BUILD_MEMORY to 20 GiB
...
A benchmark with go1.16 on amd64 resulted in an overall maximum memory
usage of 15GiB. This means we now lower the `KUBE_PARALLEL_BUILD_MEMORY`
to `20` to still have some room left.
The benchmark has been done with the following `Dockerfile`:
```dockerfile
FROM k8s.gcr.io/build-image/kube-cross:v1.16.0-1
RUN apt-get update && apt-get install -y time
WORKDIR /go/src/k8s.io/kubernetes
RUN git clone https://github.com/kubernetes/kubernetes
ENV KUBE_PARALLEL_BUILD_MEMORY=0
RUN /usr/bin/time -v make -C kubernetes cross-in-a-container
```
The value of interest from the output:
```
Maximum resident set size (kbytes): 1847108
```
The RSS is not the only value we have to consider. During the runtime I
measured the usage of the cached memory, which gets peaks up to 15GiB.
Test machine specs:
- CPU: 2 x Intel Scalable Gold 5120 28-Core Processor @ 2.2GHz
- RAM: 384GB
- Disk: 1 x 3.8TB NVME
- OS: Debian 10 (buster)
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-03-04 12:11:20 +01:00
Kubernetes Prow Robot
9658145f8a
Merge pull request #99655 from liggitt/min-go-version
...
Update go version check to 1.16+
2021-03-03 20:13:59 -08:00
Davanum Srinivas
f719624654
Support M1 MacBooks darwin/arm64 on the client-side
...
testing using:
```
build/run.sh make generated_files && make quick-release-images
```
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-02 20:50:00 -05:00
Kubernetes Prow Robot
28feb8e30d
Merge pull request #96882 from saschagrunert/parallel-build-configurable
...
Make parallel build memory threshold configurable
2021-03-02 16:51:19 -08:00
Jordan Liggitt
5e9189289e
Update go version check to 1.16+
2021-03-02 15:11:46 -05:00
Kubernetes Prow Robot
f79795d718
Merge pull request #99521 from dekkagaijin/build
...
Prevent CGO and STATIC_OVERRIDES from trampling themselves if evaluated multiple times
2021-03-02 01:23:31 -08:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
Jake Sanders
a3cfb0f2ce
Prevent CGO and STATIC_OVERRIDES from trampling themselves if sourced multiple times
2021-02-26 20:49:46 -08:00
Maciej Szulik
0a0c80c553
Add kubectl-convert to client-binaries
2021-02-22 17:01:34 +01:00
Maciej Szulik
3dab7462d1
Drop batch/v2alpha1 API
2021-02-12 17:51:12 +01:00
Benjamin Elder
7f1c6740f7
suggest homebrew when bash is too old on macOS
2021-02-09 22:40:01 -08:00
Tonis Tiigi
fd01467c0c
avoid hardcoding amd64 specifics on cross compiling
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-02-07 21:08:00 -08:00
Kubernetes Prow Robot
2d9e9290e7
Merge pull request #98508 from tonistiigi/arm64-cross
...
enable cross-compile CC config for non-amd64
2021-02-02 18:00:28 -08:00
Kubernetes Prow Robot
081f68d685
Merge pull request #97999 from llhuii/hack-version-script-fix-err-to-stdout
...
hack/lib/version.sh: fix error log to stderr
2021-01-31 08:39:48 -08:00
llhuii
36aa8a24ce
hack/lib/version.sh: fix error log to stderr
...
Since this invalid Semantic Version messages redirecting to stdout
will be captured by line 790 at hack/lib/golang.sh:
`goldflags="${GOLDFLAGS=-s -w -buildid=} $(kube::version::ldflags)"`
This happens when only no valid tag exists in repo
2021-01-31 00:40:53 +08:00
Tonis Tiigi
f19f22b43e
enable cross-compile CC config for non-amd64
...
Currently target CC can only be set if the host platform
is linux/amd64 . If target is already set in the environment
it is always safe to use it and enable cgo.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-01-28 07:11:04 -08:00
Li Bo
bb150cdd4f
change minimum bash version to 4.2
2021-01-26 20:12:58 +08:00
Davanum Srinivas
feecef7795
Ensure bash version at least 5.x
...
Co-authored-by: Stephen Augustus <justaugustus@users.noreply.github.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-01-22 13:08:53 -05:00
Kubernetes Prow Robot
3722cef5e5
Merge pull request #97947 from Haleygo/fix/replace-cfssl-resource
...
fix:replace cfssl resources and upgrade them to 1.5.0
2021-01-12 21:10:37 -08:00
Haleygo
b2796cea93
fix:replace cfssl resources and upgrade them to 1.5.0
...
Signed-off-by: Haleygo <hui.wang@daocloud.io>
2021-01-12 14:05:20 +08:00
Sascha Grunert
9428ad78fd
Make parallel build memory threshold configurable
...
The amount of memory required to build binaries in parallel is right now
set to 40GiB. We now make this variable to be able to build artifacts in
parallel even with a lower amount of memory.
This enables SIG Release to speed-up the build time drastically in
Google Cloud Build (GCB).
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2021-01-11 11:59:57 +01:00
Jesus Herrera
d8bedb3980
Remove docker remote/docker-machine from build scripts
2020-12-30 12:37:51 -05:00
yue9944882
849be447f5
APF: graduate API and types to beta
...
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-13 23:20:39 +00:00
Sergey Kanzhelev
06da0e5e74
GA of RuntimeClass feature gate and API
2020-11-11 19:22:32 +00:00
knight42
00e4234cc9
fix: pass bearer token to curl using -H instead of --oauth2-bearer
...
The flag `--oauth2-bearer` might have no effect in some environment.
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-11-05 01:15:19 +08:00
knight42
cfc2b330a7
refactor(apiserver): ignore the insecure flags
...
Leave the insecure flags intact but stop serving on insecure port.
2020-10-29 23:20:17 +08:00
Abhisek Banerjee
462326afba
Support cross compilation only on amd64.
...
Based on a patch to Bottlerocket by Ben Cressey <bcressey@amazon.com>
41a72fe214/packages/kubernetes-1.17/0001-always-set-relevant-variables-for-cross-compiling.patch
2020-10-21 00:13:01 +00:00
bnrjee
6b672863c7
Always set relevant variables for cross compiling
...
Based on a patch to Bottlerocket by Ben Cressey <bcressey@amazon.com>
41a72fe214/packages/kubernetes-1.17/0001-always-set-relevant-variables-for-cross-compiling.patch
2020-10-21 00:13:01 +00:00
Kubernetes Prow Robot
aed5ffd195
Merge pull request #94449 from justaugustus/go115
...
[go1.15] Update to go1.15.2
2020-09-15 15:15:19 -07:00
David Eads
c7911a384c
remove pod presets
2020-09-14 09:24:40 -04: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
Mike Danese
5a72bb001f
hack/lib/util.sh: some bash cleanups
...
* switched one spot to use kube::logging
* make kube::util::find-binary return an error when it doesn't find
anything so that hack scripts fail fast instead of with '' binary not
found errors.
* this required deleting some genfeddoc stuff. the binary no longer
exists in k/k repo since we removed federation/, and I don't see it
in https://github.com/kubernetes-sigs/kubefed/ either. I'm assuming
that it's gone for good now.
2020-09-11 13:19:37 -07:00
Haowei Cai
b71252a0ab
add internal.apiserver.k8s.io/v1alpha1 to known gvs
2020-09-08 14:34:55 -07:00
Kubernetes Prow Robot
b49724d5fc
Merge pull request #94287 from jingyih/update_etcd_server_3p4p13
...
Update default etcd server to 3.4.13
2020-09-01 15:35:20 -07:00
jingyih
c96b93fbd4
Update default etcd server to 3.4.13
2020-08-28 21:19:24 +08:00
Kubernetes Prow Robot
aa084d4919
Merge pull request #92491 from BenTheElder/fuzz-only-test
...
compile out gofuzz from prod binaries
2020-08-27 17:57:36 -07:00
Odin Ugedal
1524794231
Fix building with GOFLAGS=-v
...
With go1.15 running go version with "-v" fails, and we should support
it.
2020-08-15 17:44:07 +02:00
Jordan Liggitt
bdcffdced3
[go115] Require go1.15 in build helper scripts
2020-08-13 13:46:52 -04:00
Jordan Liggitt
4d1b34a582
Speed up update-swagger-docs
...
Only build genswaggertypedocs once per run instead of per-package
Speeds up the script from ~1:10 to ~0:18
2020-08-02 10:56:46 -04:00
Jordan Liggitt
d8b0f6fc50
Build code-generator tools directly
2020-08-02 10:56:46 -04:00
Jordan Liggitt
a8ae7aefd0
Lower default log verbosity
2020-08-02 01:22:59 -04:00
Kubernetes Prow Robot
5a4aa2026c
Merge pull request #92679 from RainbowMango/pr_etcd_debug_parameter
...
remove etcd deprecated parameters in scripts
2020-07-26 19:52:17 -07:00