Commit graph

1088 commits

Author SHA1 Message Date
Humble Devassy Chirammal
8dc8edf49b etcd: Update etcd to v3.6.7
ETCD 3.6.7 has some critical bug fixes
https://github.com/etcd-io/etcd/blob/main/CHANGELOG/CHANGELOG-3.6.md

Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2025-12-18 19:05:14 +05:30
Kubernetes Prow Robot
508074f023
Merge pull request #135615 from soltysh/drop_autoscaling_v2betaX
Drop autoscaling v2beta1 and v2beta2
2025-12-17 23:28:25 -08:00
Kubernetes Prow Robot
99b27386d9
Merge pull request #135211 from AkihiroSuda/fix-135210
hack/lib/util.sh: support uutils' `date` command
2025-12-17 19:59:32 -08:00
bzsuni
2c811fdd3a etcd: Update etcd to v3.6.6
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-12-08 05:37:15 +00:00
Maciej Szulik
e347aa994b
React to removing autoscaling v2beta1 and v2beta2
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-12-05 11:59:30 +01:00
Akihiro Suda
0c0bc0d533
hack/lib/util.sh: support uutils' date command
`make` was printing the following warning on Ubuntu 25.10,
which switched away from GNU coreutils to uutils:

```
!!! [1107 12:46:24] Failed to find GNU date as date or gdate. If you are on Mac: brew install coreutils.
<GOPATH>/src/k8s.io/kubernetes/hack/lib/version.sh: line 166: DATE: unbound variable
```

Fix issue 135210

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-11-18 17:27:50 +09:00
Michael Aspinwall
3b72759d1b Update SVM to Beta
Co-authored-by: Stanislav Láznička <stlaz.devel@proton.me>
2025-10-29 19:36:11 +00:00
Benjamin Elder
1877809f59 cleanup unused rsync related env vars 2025-10-16 10:26:13 -07:00
Benjamin Elder
feeeb4aa19 switch from rsync to cp, drop rsync requirement 2025-10-16 10:26:13 -07:00
Benjamin Elder
30c3c990d0 prevent shellcheck warning
https://www.shellcheck.net/wiki/SC2153

this is not a mispelling of KUBE_OUTPUT_SUBPATH, the unprefixed version is an optional override which sets _KUBE_OUTPUT_SUBPATH, which is handled in hack/lib/init.sh where golang.sh is sourced
2025-10-15 20:18:31 -07:00
Benjamin Elder
563919c685 don't update _output/bin symlink in dockerized builds 2025-10-15 20:18:31 -07:00
Benjamin Elder
605f402d44 use relative symlink for output path
resolves issues with creating symlinks inside the build container via bind mount instead of rsync-ing them out
2025-10-15 13:12:38 -07:00
Jordan Liggitt
39d37a1e92 Remove invalid SAN certificate construction 2025-10-13 10:27:22 -07:00
Kubernetes Prow Robot
51e35e61ce
Merge pull request #133870 from pohly/build-data-race-detection
build: also support KUBE_RACE for test binaries
2025-10-08 12:57:01 -07:00
joshjms
070d4c1846 bump etcd to v3.6.5
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-10-03 18:19:15 +08:00
Benjamin Elder
88d6e6c465 drop automaxprocs hacks now that go 1.25 handles this built in
https://go.dev/doc/go1.25#container-aware-gomaxprocs
2025-09-17 16:36:15 -07:00
Davanum Srinivas
6dbc13fd13 Bump to go1.25.1 based images 2025-09-16 22:42:29 -04:00
Patrick Ohly
9b696ff58c build: also support KUBE_RACE for test binaries
This is relevant for building e2e.test in
pull-kubernetes-e2e-kind-alpha-beta-features-race: if it contains data races,
tests might be flaky.
2025-09-09 17:10:10 +02:00
Kubernetes Prow Robot
d9df4ecff7
Merge pull request #133834 from pohly/build-data-race-detection
build: support -race in binaries
2025-09-03 00:11:13 -07:00
Patrick Ohly
23362e001c build: support -race in binaries
Since a few releases, Go supports `go build -race` and then produces
binaries which do data race detection when invoked. Some changes are needed to
enable using this in a kind cluster:

- `-race` must be passed when building dynamically linked binaries.
  Only those support -race because CGO is required.
  To avoid adding yet another env variables, the existing KUBE_RACE
  gets used to convey the intent.
- KUBE_RACE must be passed into the dockerized build.
- Logging the base image of a release image makes it easier
  to figure out whether the binary has a chance to run.

The base image is important because dynamically linked binaries need a base
image with libc. By default, control plane components are linked statically,
so users need to explicitly override the defaults:

    KUBE_RACE=-race KUBE_CGO_OVERRIDES="kube-apiserver kube-controller-manager kube-scheduler" KUBE_GORUNNER_IMAGE=gcr.io/k8s-staging-test-infra/kubekins-e2e:v20250815-171060767f-master kind build node-image ...

KUBE_GORUNNER_IMAGE changes the base image for kube-apiserver,
kube-controller-manager and kube-scheduler. The kubekins image was picked for
this example because a Prow job definition already uses it. Reusing
it in a job avoids the need to maintain another image definition.

Running conformance tests against such a cluster with alpha+beta features
enabled revealed one new data race:

    $ kubectl logs -n kube-system kube-controller-manager-kind-control-plane
    ...
    WARNING: DATA RACE
    Write at 0x00c00019a730 by goroutine 216:
    k8s.io/client-go/tools/leaderelection.(*LeaderElector).setObservedRecord()
         k8s.io/client-go/tools/leaderelection/leaderelection.go:529 +0x179
    k8s.io/client-go/tools/leaderelection.(*LeaderElector).tryCoordinatedRenew()
         k8s.io/client-go/tools/leaderelection/leaderelection.go:367 +0x5ca
    ...
2025-09-02 16:32:09 +02:00
Kubernetes Prow Robot
e992d3948e
Merge pull request #133588 from pohly/test-integration-timeout
hack: more output about running tests
2025-09-01 22:43:26 -07:00
Sascha Grunert
ea02ce5b60
Update protobindings scripts to drop gogo paths
Cleanup the available scripts to remove unused code paths after all
gogo references have been migrated to native protobuf.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-09-01 09:35:20 +02:00
Benjamin Elder
8512862161 cleanup tempdirs on exit in kube::verify::generated 2025-08-26 18:10:33 -07:00
Patrick Ohly
0b647319c4 hack: more output about running tests
set -x/+x wraps setting relevant configuration variables to debug how and where
they get sets. The final gotestsum invocation gets logged in addition to being
run.
2025-08-18 14:33:57 +02:00
Ivan Valdes
e8dc272c53
Update etcd to 3.6.4 2025-07-27 21:45:02 -07:00
Patrick Ohly
4e592f6c14 DRA API: s/v1beta2/v1/ and generated files 2025-07-24 08:30:24 +02:00
Sascha Grunert
b464bbeb8f
Remove gogo-protobuf from CRI
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-07-04 08:55:57 +02:00
Kubernetes Prow Robot
c6539bc785
Merge pull request #132284 from ArkaSaha30/bump-etcd-3.6.1
Bump etcd to v3.6.1
2025-06-30 11:00:35 -07:00
Davanum Srinivas
138e363e41
cleanup shellcheck for temporary HOME directory
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-19 11:48:15 -04:00
Davanum Srinivas
cfff359b41
fix for gimme when $HOME is not writable
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-18 18:01:28 -04:00
ArkaSaha30
e09b042d34
Bump etcd to v3.6.1
This commit will bump etcd to v3.6.1
Release: https://github.com/etcd-io/etcd/releases/tag/v3.6.1
Issue: https://github.com/etcd-io/etcd/issues/20047

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2025-06-13 16:28:35 +05:30
Davanum Srinivas
a9108e8f53
Adding grpcnotrace tag for production (non-debug) builds
If someone really wants to do golang diagnostics:
https://go.dev/doc/diagnostics#tracing

then they will only be able to do that in debug builds (`DBG`).

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-11 15:52:40 -04:00
Davanum Srinivas
c85ac59df4
Build k8s using latest commit of golang
Run "gimme master" and use the newly built binaries. Adjust
GOROOT_BOOTSTRAP so we can use the golang that is already
on disk to build the new commit from golang.

To enable this, edit `.go-version` and set the version to
```
devel
```

and then run `make quick-release` (for example)

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-09 17:41:41 -04:00
joshjms
b461d80f3d etcd: update etcd image to v3.6.0
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-05-26 15:06:50 +08:00
Antonio Ojea
15ab88f88b remove networking v1alpha1 and make update 2025-05-06 13:29:54 +00:00
Benjamin Elder
d5bf33e7d7 update-codegen.sh: automatically install protoc 2025-04-24 22:54:09 -07:00
joshjms
24edc6e90f Update etcd to 3.5.21
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-04-02 02:16:38 +08:00
Morten Torkildsen
39507d911f Add resource v1beta2 API 2025-03-26 14:41:09 +00:00
cpanato
597b54720e
Bump images, dependencies and versions to go 1.24.0
Signed-off-by: cpanato <ctadeu@gmail.com>
2025-02-26 11:26:54 +01:00
Jordan Liggitt
0ce48b5636
Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 13:01:59 -05:00
bzsuni
df503e54c8 Update etcd from v3.5.16 to v3.5.17
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-01-02 10:20:42 +00:00
Jefftree
0ce7b688a6 v1alpha2 LeaseCandidate API 2024-11-08 02:27:19 +00:00
Patrick Ohly
2e64c72249 DRA API: register v1beta1
This is the minimal set of changes that are needed to make the new version
usable. The storage version is still v1alpha3. More changes will follow.
2024-11-06 13:03:18 +01:00
Kubernetes Prow Robot
0c713c7bd6
Merge pull request #127285 from bzsuni/bz/etcd/update/v3.5.16
Update etcd from v3.5.15 to v3.5.16
2024-09-28 15:16:02 +01:00
Kubernetes Prow Robot
f49fadb4ed
Merge pull request #127472 from skitt/fix-client-go-extensions-broken
Run staging verify scripts from the main make verify
2024-09-28 03:56:08 +01:00
Stephen Kitt
beb51e1759
make verify: run checks in all module hack directories
This ensures that all verification scripts are run throughout the
repository.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-09-26 08:46:04 +02:00
Tim Hockin
cf280dd6c2
Skip Go target normalization in integration tests 2024-09-25 13:15:48 -07:00
bzsuni
5b6ef4302e Update etcd from v3.5.15 to v3.5.16
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-09-11 10:51:34 +08:00
cpanato
b0c17b124f
Bump images, dependencies and versions to go 1.23.0
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-09-02 10:42:04 -06:00
ArkaSaha30
d1dfeed505
Revert "Bump images, dependencies and versions to go 1.23rc1"
This reverts commit 5c269fecf8.
2024-07-29 13:55:03 +05:30