Commit graph

10819 commits

Author SHA1 Message Date
Yongrui Lin
daae4100a6 hack: enable coverage fixture generation in update-codegen.sh
Pass -test-output-root and -test-allowlist to validation-gen so the
per-Kind coverage fixtures regenerate alongside the validators. Add the
allowlist YAML at test/declarative_validation/coverage-allowlist.yaml.
2026-05-09 19:11:01 +00:00
Jefftree
3cfb64b470 Remove kube-openapi from modern-go unwantedReferences 2026-05-09 13:20:11 -04:00
Jefftree
21b5db3b6f Remove kube-openapi from json-iterator unwantedReferences 2026-05-09 12:11:22 -04:00
Lubomir I. Ivanov
21549a3ac2 hack/cherry_pick_pull.sh: use 'gh' to download patches
If GitHub is rate limited 'curl' can just download an HTML with
errors. Since 'gh' is already used in the script, use that instead.
2026-05-08 19:16:21 +02:00
Maciej Szulik
d39ded4c9a
Pin github.com/fsnotify/fsnotify to v1.9.0
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-05-07 20:12:36 +02:00
Kubernetes Prow Robot
56c6f6bf87
Merge pull request #138624 from kAvEh--/fix-130069-contextual-logging
fix: Refactor Kubelet to pass `klog.Logger` context for structured lo…
2026-05-07 13:43:28 +05:30
Stephen Kitt
edf0df348c
Bump go.yaml.in/yaml/v2 to 2.4.4
This only changes tests to drop gopkg.in/check.v1, which helps our
dependency tree a little.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2026-05-06 18:24:52 +02:00
kaveh
25a83864e4 chore: remove redundant comments 2026-05-06 09:35:48 +02:00
Davanum Srinivas
30a9e7d1b3
Update gRPC ecosystem dependencies
- google.golang.org/grpc: v1.80.0 -> v1.81.0
- github.com/grpc-ecosystem/grpc-gateway/v2: v2.28.0 -> v2.29.0
- github.com/containerd/containerd/api: v1.10.0 -> v1.11.0
- github.com/containerd/ttrpc: v1.2.7 -> v1.2.8
- google.golang.org/genproto/googleapis/rpc: v0.0.0-20260406210006 -> v0.0.0-20260414002931
- google.golang.org/genproto/googleapis/api: v0.0.0-20260401024825 -> v0.0.0-20260414002931

Also update hack/unwanted-dependencies.json: containerd/containerd/api v1.11.0
no longer depends on github.com/golang/protobuf.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-05-05 20:06:14 -04:00
Kubernetes Prow Robot
2ead24d1e3
Merge pull request #136189 from bhope/metrics-beta-kubelet-volume
Promote volume metrics to beta
2026-05-06 05:04:21 +05:30
Prathamesh Bhope
610e615b35 Promote volume metrics to beta and strengthen the tests 2026-05-05 10:48:17 -07:00
kaveh
a80ae6bd7f chore: revert comment removal 2026-05-05 13:21:15 +02:00
kaveh
9de9edf220 chore: revert extra param added to logs 2026-05-05 11:59:59 +02:00
kaveh
9f3253114a chore: run hack/update-golangci-lint-config.sh 2026-05-04 23:06:25 +02:00
Kubernetes Prow Robot
0fe8ee1922
Merge pull request #138741 from dims/update-kube-openapi
bump k8s.io/kube-openapi to v0.0.0-20260502001324-b7f5293f4787
2026-05-04 22:50:52 +05:30
Kubernetes Prow Robot
135f25c532
Merge pull request #138717 from pohly/dra-upgrade-downgrade-etcd
DRA upgrade/downgrade: control etcd lifecycle directly
2026-05-04 17:19:40 +05:30
Kubernetes Prow Robot
d314f55491
Merge pull request #138705 from bart0sh/PR235-e2e_dra-reliability-fixes
e2e_dra: reliability fixes
2026-05-04 15:05:39 +05:30
Patrick Ohly
a2b0ea30b0 DRA upgrade/downgrade: run etcd directly
The local-up-cluster.sh script was used as proxy for controlling the etcd
lifecycle because the script was using a helper function that didn't support
dry-run mode. That approach was flawed in several ways, causing etcd to be left
running:

- Cmd.Stop wasn't actually called for the script by Cluster.Stop.
- If it had been called, the additional output during shutdown wouldn't
  have been processed, which might have caused the command to block instead
  of terminating (untested).
- It's unclear whether the script would have handled the signal properly.

A cleaner approach is to enable dry-run mode also in etcd .sh and then let
Cluster manage it like any other long-running process. Then we can let
local-up-cluster.sh terminate when it's done with its work. Cluster.Start can
check it's result immediately.
2026-05-04 09:24:47 +02:00
Davanum Srinivas
36d8dd58bf
hack/unwanted-dependencies.json: drop k8s.io/kube-openapi from mailru/easyjson references
The new kube-openapi revision (v0.0.0-20260502001324-b7f5293f4787) no
longer pulls in github.com/mailru/easyjson, so remove it from the
status.unwantedReferences list to keep verify-vendor.sh green.
2026-05-01 20:56:42 -04:00
Kubernetes Prow Robot
9268179b80
Merge pull request #137105 from pohly/test-upstream-unit-tests
test: support running upstream unit tests
2026-05-01 23:49:24 +05:30
Kaveh Fazaeli
5354a598c4
Update hack/golangci-hints.yaml
Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>
2026-05-01 16:49:56 +02:00
Ed Bartosh
71706ad37f local-up-cluster: avoid downloading cfssl on every run
Cached cfssl under KUBERNETES_SERVER_CACHE_DIR
so it is downloaded only on the first run and reused afterwards.
This should speed up test execution.
2026-05-01 12:09:24 +03:00
kaveh
21c9f69587 fix: Migrate volume_host to structured logging with contextual logger 2026-04-29 16:59:44 +02:00
kaveh
7a2b91b043 chore: Remove obsolete contextual logging exclusions in Kubelet configuration 2026-04-28 14:10:57 +02:00
Patrick Ohly
88391f7653 instrumentation test: fix unit test
Moving the code made it impossible to import pkg/kubelet/metrics.
But all that the test needs is the subsystem name, so importing
the package can be avoided.
2026-04-27 09:18:11 +02:00
Patrick Ohly
f38660b14b test: move list of extra tests into separate file
This is a bit easier to edit than directly in the bash script.
2026-04-27 09:18:11 +02:00
Paco Xu
e7613dd379 update unwanted dependecies: remove github.com/stretchr/objx 2026-04-27 14:54:09 +08:00
Kubernetes Prow Robot
e9b95827eb
Merge pull request #138573 from dims/update-go-openapi-deps-rebase
Update go-openapi dependencies (jsonpointer, jsonreference, swag)
2026-04-26 05:42:46 +05:30
Kubernetes Prow Robot
7deb49b29e
Merge pull request #138511 from hoteye/pr3-kubelet-pod-container-deletor
kubelet: migrate pod container deletor to contextual logging
2026-04-25 05:40:45 +05:30
Patrick Ohly
10c7bcd50b test: also run unit tests for package under hack/tools
This is currently only the
k8s.io/kubernetes/hack/tools/golangci-lint/sorted/pkg linter implementation.
2026-04-24 16:40:35 +02:00
Patrick Ohly
fe06a4c3cc test: support running upstream unit tests
The logtools linter broke a while ago when moving to more recent Go and/or more
recent dependencies such that it stopped reporting certain issues. This was
only noticed much later when a broken log call was found in the code base which
should have been flagged as wrong by the linter.

It is possible to run upstream Go unit tests in a downstream project. This is
now done for logtools if (and only if) no explicit test targets are
selected. Because hack/tools is not part of the workspace, this only works
after changing directories. gotestsum gets invoked once for the root and this
additional directory with different result files and set of test targets.

We could add more upstream tests. etcd tests were mentioned as something where
that would be useful. However, right now upstream etcd tests have some
dependencies on being run inside the original source tree, so that would have
to be fixed first. For now only single etcd client package gets tests as
a proof-of-concept of the new support for testing vendored upstream packages.
For those, -mod=readonly is needed to avoid:

    $ go test go.etcd.io/etcd/client/pkg/v3/fileutil
    ?   	go.etcd.io/etcd/client/pkg/v3/fileutil	[no test files]
2026-04-24 16:40:35 +02:00
Davanum Srinivas
693dc57f57
Update go-openapi dependencies (jsonpointer, jsonreference, swag)
Bump go-openapi dependencies to latest versions:
- github.com/go-openapi/jsonpointer v0.21.0 → v0.22.4
- github.com/go-openapi/jsonreference v0.20.2 → v0.21.4
- github.com/go-openapi/swag v0.23.0 → v0.25.4

The new swag version has been restructured into a multi-module monorepo
with submodules (cmdutils, conv, fileutils, jsonname, jsonutils, loading,
mangling, netutils, stringutils, typeutils, yamlutils). As a result:
- mailru/easyjson and josharian/intern are no longer transitive deps
  and have been removed from vendor
- go-openapi/jsonpointer and go-openapi/swag no longer reference
  unwanted deps davecgh/go-spew, mailru/easyjson, or gopkg.in/yaml.v3
- Updated hack/unwanted-dependencies.json accordingly

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-04-24 08:13:31 -04:00
Davanum Srinivas
12a2470693
Update golang.org/x/net to v0.53.0
Fixes CVE-2026-33814 (golang/go#78476): HTTP/2 Transport hangs
indefinitely when a peer sends a SETTINGS frame with MaxFrameSize=0.
This is reachable from kube-apiserver's OIDC, admission webhook,
and aggregated API client paths.
2026-04-23 21:36:05 -04:00
Kubernetes Prow Robot
5ed1fd971d
Merge pull request #138192 from skitt/otel-1.42
Bump otel to 1.43.0 and contrib to 0.68.0
2026-04-23 20:00:53 +05:30
Kubernetes Prow Robot
326c31cdc0
Merge pull request #138344 from dims/update-cel-go-dep
Update github.com/google/cel-go v0.26.0 -> v0.27.0 AND avoid v0.28.0
2026-04-23 19:00:46 +05:30
Stephen Kitt
1a63916abe
Bump otel to 1.43.0 and contrib to 0.68.0
See
https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.41.0
https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.42.0
https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.43.0
and
https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.41.0
https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.42.0
https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.43.0
for details.

otelgrpc no longer produces "messages" span events so these are
removed from the tracing test.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2026-04-23 14:35:21 +02:00
Kubernetes Prow Robot
61723e7fa7
Merge pull request #138392 from humblec/update-etcd-image-3.6.10
etcd: update etcd image to v3.6.10
2026-04-23 17:28:45 +05:30
Kubernetes Prow Robot
f0acd90511
Merge pull request #138384 from dashpole/metric_presubmit
Add presubmit for metric naming
2026-04-23 07:20:51 +05:30
Kubernetes Prow Robot
81f142e9b8
Merge pull request #136935 from troychiu/enable-optionalorrequired-linter-for-resource
api: enable optionalorrequired linter for resource API
2026-04-23 03:20:09 +05:30
hoteye
f558899998 kubelet: migrate pod container deletor to contextual logging
Convert pod_container_deletor.go to contextual logging without
changing its detached worker lifecycle.

Pass the caller logger into pod container cleanup paths, use a
logger-bound background context for DeleteContainer, update the
unit tests to use ktesting loggers, and remove the remaining
logcheck carve-out for pod_container_deletor.go.
2026-04-22 17:22:41 +08:00
David Ashpole
28a48c318f
add presubmit for metric naming 2026-04-21 01:03:31 +00:00
Humble Devassy Chirammal
d5c1f165c1 etcd: update etcd image to v3.6.10
Update etcd images to v3.6.10 across build dependencies, kubeadm defaults,
GCE manifests, test manifests, and sample-apiserver deployment.

Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2026-04-15 16:18:52 +05:30
Davanum Srinivas
09fbff5735
Update github.com/google/cel-go v0.26.0 -> v0.27.0
Bump cel-go to v0.27.0 to pick up the fix for context cancellation
error reporting that's breaking CI (see #138334).

Changes worth noting:
- cel-go switched from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3,
  so removed it from the gopkg.in/yaml.v3 unwanted references
- Dropped transitive dep github.com/stoewer/go-strcase
- Updated transitive dep github.com/antlr4-go/antlr/v4
- Pinned cel-go at v0.27.0 in hack/unwanted-dependencies.json

Kubernetes-commit: <drop>
2026-04-13 08:53:35 -04:00
Lubomir I. Ivanov
bc2179d882 pause: fix version drift in various files
The latest pause version is 3.10.2 but due to the introduction
of the PATCH level version to the pause image (previously was
only MAJOR.MINOR), various files have remained on an older
version. Either 3.10 or 3.10.1. Our validation with
build/dependencies.yaml ./hack/verify-external-dependencies.sh
did not account for that.
2026-04-03 16:11:09 +02:00
yashsingh74
afdb5e5d1f
Update CNI plugins to v1.9.1
Signed-off-by: yashsingh74 <yashsingh1774@gmail.com>
2026-04-01 14:06:34 +05:30
Brian Sonnenberg
044f65ca5c [KEP-4188] New Kubelet gRPC API with endpoint returning local Pod information 2026-03-18 23:07:36 +00:00
Kubernetes Prow Robot
7a3a6cf4be
Merge pull request #136725 from pravk03/native-dra-2
Introduce support of DRA for Native Resources
2026-03-19 03:36:38 +05:30
Praveen Krishna
ab5335d780 Add a linter exception for using maps. 2026-03-18 14:33:06 +00:00
Paco Xu
a27021081d remove gopkg.in/yaml.v3 usage of cobra 2026-03-18 16:47:19 +08:00
Kubernetes Prow Robot
9c7e57bb7c
Merge pull request #137330 from tico88612/cleanup/test-node-pod-dep-prometheus
Remove dep. Prometheus from test/e2e/node/pods.go
2026-03-16 20:43:49 +05:30