Commit Graph

10556 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
6bc4914b84 Merge pull request #134256 from liggitt/protoc-gogo-poc
KEP-5589 - drop gogo runtime dependencies
2025-10-08 13:47:00 -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
Jordan Liggitt
7f58bb9abd Regenerate vendor 2025-10-08 14:28:41 -04:00
Jordan Liggitt
6d8adfe402 Isolate generated ProtoMessage() methods in build-tagged files 2025-10-08 14:28:40 -04:00
joshjms
070d4c1846 bump etcd to v3.6.5
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-10-03 18:19:15 +08:00
Kubernetes Prow Robot
1a04a958fb Merge pull request #134228 from liggitt/proto-gogo-poc
gogo protobuf dependency cleanup
2025-09-23 16:46:20 -07:00
Kubernetes Prow Robot
c4ecd6b129 Merge pull request #134221 from danwinship/strict-lint-cleanup
Remove some unused bits of verify-golangci-lint.sh
2025-09-23 16:46:13 -07:00
Jordan Liggitt
a87068c685 Clean up gogo dependency tracking 2025-09-23 13:59:37 -04:00
Dan Winship
ac35a0a99a Remove some unused bits of verify-golangci-lint.sh
The "strict" option was removed but was still referenced.
2025-09-23 08:39:49 -04:00
Kubernetes Prow Robot
1aec2eb003 Merge pull request #134156 from JoelSpeed/enable-ssa-tags
Enable SSATags linter to enforce +listType on lists in APIs
2025-09-22 09:50:17 -07:00
Joel Speed
4e71993917 Enable SSATags linter to enforce +listType on lists in APIs 2025-09-19 13:57:07 +01:00
Stephen Kitt
c3a26a066d Bump golangci-lint to 2.4.0
This adds support for Go 1.25. There are no changes to the linting
results.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-09-18 16:20:34 +02: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
Benjamin Elder
563d4d651c bump go language version to 1.25 2025-09-17 14:56:07 -07:00
Davanum Srinivas
6dbc13fd13 Bump to go1.25.1 based images 2025-09-16 22:42:29 -04:00
Patrick Ohly
aefd2effc5 test: automatically lower Ginkgo parallelism when using race detection
When race detection is enabled, merely running 25 e2e.test instances was too much
and the OOM killer shut down the Prow test pod because of the memory overhead.

A CI job could control that via GINKGO_PARALLEL_NODES, but we should also have
saner defaults which take this into account.
2025-09-16 20:25:53 +02:00
Kubernetes Prow Robot
d1af46054f Merge pull request #133605 from JoelSpeed/enable-conditions-kal
Enforce API conventions around Conditions fields via Kube API Linter
2025-09-16 08:08:13 -07:00
Kubernetes Prow Robot
b40d570248 Merge pull request #133988 from bart0sh/PR199-migrate-kubelet-certificate-to-contextual-logging
migrate kubelet/certificate to contextual logging
2025-09-16 02:24:12 -07:00
Joel Speed
d2ba13dac9 Add exceptions for existing issues for conditions linter 2025-09-12 18:07:54 +01:00
Joel Speed
894d724f98 Enable conditions linter for Kube API Linter 2025-09-12 18:06:55 +01:00
Joel Speed
e3b08f9871 Update KAL to latest and add shadow config for new options 2025-09-12 18:06:17 +01:00
Joe Betz
cfbe326e3a Enable openapi model name accessor generator
Signed-off-by: Joe Betz <jpbetz@google.com>
2025-09-10 15:52:58 -04:00
Kubernetes Prow Robot
bbd859808d Merge pull request #133921 from dims/update-prometheus-client-golang-and-common-packages
update prometheus' client_golang and common packages
2025-09-10 08:40:06 -07:00
Ed Bartosh
bf0429ed07 migrate kubelet/certificate to contextual logging 2025-09-10 12:33:33 +03:00
Kubernetes Prow Robot
f26c1326e2 Merge pull request #133957 from bart0sh/PR199-migrate-server-to-contextual-logging
Migrate kubelet/server to contextual logging
2025-09-09 19:29:57 -07:00
Davanum Srinivas
bdfca587f4 update prometheus' client_golang and common packages 2025-09-09 15:43:08 -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
Ed Bartosh
b276c96ef8 Migrate kubelet/server to contextual logging 2025-09-09 12:49:42 +03:00
Monis Khan
801ee44163 Validate kubelet serving cert in local-up-cluster
Signed-off-by: Monis Khan <mok@microsoft.com>
2025-09-08 16:12:21 -04:00
Kubernetes Prow Robot
3b687533aa Merge pull request #133217 from bart0sh/PR187-migrate-utils-logs-to-contextual-logging
Kubelet: Migrate util/ and logs/ to contextual logging
2025-09-05 14:37:34 -07:00
Kubernetes Prow Robot
078a8f1894 Merge pull request #130581 from zhifei92/migrate-kubelet-config-to-contextual-logging
chore(kubelet):  migrate config to contextual logging
2025-09-05 05:25:26 -07:00
Omer Aplatony
d75d4860e7 kubelet: migrate module logs to contextual logging
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>
2025-09-05 13:22:00 +03:00
Omer Aplatony
9c1cf79d74 kubelet: migrate utils to contextual logging
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>
2025-09-05 13:19:56 +03:00
Kubernetes Prow Robot
5dff07fdf9 Merge pull request #133837 from saschagrunert/cni-plugins
Update CNI plugins to v1.8.0
2025-09-03 07:53:15 -07: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
Sascha Grunert
f0be916f7a Update CNI plugins to v1.8.0
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-09-02 08:39:57 +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
Kubernetes Prow Robot
47bbe32cb6 Merge pull request #132478 from pohly/test-verify-images
verify-e2e-images.sh enhancements
2025-09-01 22:43:19 -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
Kubernetes Prow Robot
d5065bdf19 Merge pull request #133430 from liggitt/json-patch-v4-errors
bump gopkg.in/evanphx/json-patch.v4
2025-08-30 07:17:08 -07:00
Kubernetes Prow Robot
b8257c1667 Merge pull request #133699 from pohly/log-check-update
hack/logcheck.conf: add several converted packages
2025-08-29 08:17:16 -07:00
Kubernetes Prow Robot
cb67d10970 Merge pull request #133026 from saschagrunert/dra-proto
Convert `k8s.io/kubelet/pkg/apis/dra` from gogo to protoc
2025-08-29 08:17:09 -07:00
Kubernetes Prow Robot
d70f058f9f Merge pull request #132407 from skitt/mockery-v3
Bump to mockery v3
2025-08-29 07:03:09 -07:00
Stephen Kitt
81cec6df1d Bump to mockery v3
mockery has introduced breaking changes and switched to a v3 branch,
this migrates to that, mostly using the built-in migration tool. Mocks
are now generated in single files per package, except in packages
containing mocks for multiple interface packages (in
pkg/kubelet/container/testing).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-08-29 13:43:54 +02:00
Sascha Grunert
fd2d2fd66f Convert k8s.io/kubelet/pkg/apis/dra from gogo to protoc
Use standard protoc for the dra instead of gogo.

Part of kubernetes#96564

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-08-29 09:40:51 +02:00
Jordan Liggitt
9f8d9432e2 bump gopkg.in/evanphx/json-patch.v4 2025-08-29 00:31:11 -04:00
Benjamin Elder
e5f4caf62a drop spammy xtrace from hack/test scripts
this shouldn't be set when sourcing install-etcd.sh, which has a lot of non-trivial shell to log

we can leave it when it just logs the test commands
2025-08-28 12:21:01 -07:00
Stephen Kitt
684473af62 Bump cadvisor to 0.53
This brings a few fixes, drops github.com/pkg/errors (as a direct
dependency), and bumps many transitive dependencies. The
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp bump to
v0.61.0 breaks "k8s.io/kubernetes/test/integration/apiserver: tracing"
consistently, so it's held back for now.

github.com/containerd/containerd/api pulls in gopkg.in/yaml.v3 so that
needs to be added to the exceptions in unwanted-dependencies.json.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-08-28 09:20:21 +02:00
Kubernetes Prow Robot
2cbd5a6a92 Merge pull request #133718 from BenTheElder/codegen-rsync
build: discourage expanding dependency on rsync, eliminate some unnecessary filters
2025-08-27 20:24:42 -07:00