Commit Graph

134908 Commits

Author SHA1 Message Date
Ed Bartosh
152c2e5d1c migrate kubelet/images/pullmanager to contextual logging 2026-01-12 12:36:53 +02:00
Kubernetes Prow Robot
997ca903d8 Merge pull request #136127 from carlory/fix-3279
kubeadm: fix a bug where kubeadm upgrade is failed if the content of the `kubeadm-flags.env` file is `KUBELET_KUBEADM_ARGS=""`
2026-01-12 15:24:10 +05:30
carlory
f96472556c kubeadm: fix a bug where kubeadm upgrade is failed if the content of the kubeadm-flags.env file is KUBELET_KUBEADM_ARGS=""
Signed-off-by: carlory <baofa.fan@daocloud.io>
2026-01-12 10:09:05 +08:00
Davanum Srinivas
0e67c56a8f Update golang.org/x dependencies to latest versions
updates the golang.org/x package family to newer releases:

- golang.org/x/crypto: v0.45.0 -> v0.46.0
- golang.org/x/net: v0.47.0 -> v0.48.0
- golang.org/x/sys: v0.38.0 -> v0.40.0
- golang.org/x/time: v0.9.0 -> v0.14.0
- golang.org/x/oauth2: v0.30.0 -> v0.34.0
- golang.org/x/text: v0.31.0 -> v0.33.0
- golang.org/x/term: v0.37.0 -> v0.39.0
- golang.org/x/sync: v0.18.0 -> v0.19.0
- golang.org/x/mod: v0.29.0 -> v0.32.0
- golang.org/x/tools: v0.38.0 -> v0.40.0
- golang.org/x/exp: 8a7402abbf56 -> 944ab1f22d93

Security & Stability:
- x/crypto: Updated X509 root certificate bundle
- x/net: HTTP/2 PING optimization to reduce DoS detection triggers,
  data race fix in trace RenderEvents
- x/sys: Fixed out-of-bounds memory access in sockaddrIUCVToAny
- x/time: Fixed rate limiter overflow when using very low rates that
  could cause the limiter to jam open

Performance:
- x/time: ~19% improvement in Sometimes.Do when no interval configured

Maintenance:
- Various vet diagnostic fixes for Go 1.26 compatibility
- Dependency updates across the golang.org/x ecosystem

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-11 16:26:07 -05:00
Antoni Zawodny
833b7205fc Run PreBind plugins in parallel if feasible 2026-01-11 14:19:18 +01:00
Antoni Zawodny
16b375e4ef Generalize ErrorChannel to other underlying types 2026-01-11 13:58:06 +01:00
Kubernetes Prow Robot
036cd9fc6e Merge pull request #136151 from pohly/e2e-ktesting-revert
testing: partial revert of E2E + DRA upgrade/downgrade
2026-01-11 17:29:57 +05:30
Patrick Ohly
e999d595b1 testing: partial revert of E2E + DRA upgrade/downgrade
Refactoring the DRA upgrade/downgrade testing such that it runs as Go test
depended on supporting ktesting in the E2E framework. That change worked during
presubmit testing, but broke some periodic jobs. Therefore the relevant commits
from https://github.com/kubernetes/kubernetes/pull/135664/commits get reverted:

c47ad64820 DRA e2e+integration: test ResourceSlice controller
047682908d ktesting: replace Begin/End with TContext.Step
de47714879 DRA upgrade/downgrade: rewrite as Go unit test
7c7b1e1018 DRA e2e: make driver deployment possible in Go unit tests
65ef31973c DRA upgrade/downgrade: split out individual test steps
47b613eded e2e framework: support creating TContext

The last one is what must have caused the problem, but the other commits depend
on it.
2026-01-11 09:55:17 +01:00
Kubernetes Prow Robot
6714aef4aa Merge pull request #136130 from LoginovIlia/kubeadm_use_newclientset
kubeadm: switch tests to NewClientset
2026-01-11 03:53:57 +05:30
yliao
e02f0e2ba5 added unit test case to ensure implicit DRA extended resource is handled properly during pod admission at kubelet 2026-01-10 16:57:08 +00:00
ShaanveerS
d1867b4864 agnhost porter add support UDP and SERVE_TCP_PORT 2026-01-10 05:47:25 +01:00
Kubernetes Prow Robot
8f20f72526 Merge pull request #136079 from lalitc375/for-each
Re-apply "Migrate ResourceSlice map key validation to declarative validation"
2026-01-10 07:27:46 +05:30
Kubernetes Prow Robot
51579e9c36 Merge pull request #135890 from CLBRITTON2/discovery-endpoint-dv
Feat: wire discovery group for declarative validation and migrate Endpoint.Addresses + EndpointSlice.AddressType
2026-01-10 07:27:38 +05:30
Kubernetes Prow Robot
5151096d1f Merge pull request #136096 from pacoxu/patch-14
Update error message expectation in criproxy_test
2026-01-10 05:47:47 +05:30
Kubernetes Prow Robot
3ad5f1b8a9 Merge pull request #134681 from JoelSpeed/enable-kal-nonullable
Enable nonullable rule for Kube API Linter
2026-01-10 05:47:40 +05:30
Kubernetes Prow Robot
c71eec3c3f Merge pull request #135687 from yashsingh74/cni-bump
Update CNI plugins to v1.9.0
2026-01-10 04:57:41 +05:30
Kubernetes Prow Robot
03e8ca9faa Merge pull request #136115 from harche/remove_year
Remove year from runtime_test.go file copyright notice
2026-01-10 03:23:38 +05:30
Richa Banker
8d2838a53e Graduate watch_list_duration_seconds to BETA 2026-01-09 13:37:20 -08:00
Kubernetes Prow Robot
da22735138 Merge pull request #136041 from richabanker/update-metrics-docs-1.35
Update metrics docs 1.35
2026-01-10 02:13:41 +05:30
Dan Winship
f278b47ecd Drop TopologyAwareHints and ServiceTraficDistribution feature gates 2026-01-09 12:42:34 -05:00
Kubernetes Prow Robot
98e6935d43 Merge pull request #136140 from pohly/e2e-framework-tcontext-fix
E2E framework: fix nil pointer crash in TContext
2026-01-09 23:09:41 +05:30
CLBRITTON2
6d69ee0937 Add declarative validation tests for EndpointSlice addressType supported values 2026-01-09 11:54:52 -05:00
CLBRITTON2
5ee4b49ebd Add declarative validation tests for EndpointSlice addressType immutability 2026-01-09 11:54:51 -05:00
CLBRITTON2
1ee5d304a9 Add declarative validation tests for EndpointSlice addressType required 2026-01-09 11:54:51 -05:00
CLBRITTON2
a6618afc29 Wire discovery v1/v1beta1 for fuzz testing 2026-01-09 11:54:51 -05:00
chris britton
2c3516edb0 Add maxItems tag to Endpoint.Addresses, update tests 2026-01-09 11:54:51 -05:00
chris britton
5e4d5fe599 Mark Endpoint.Addresses required, add test cases 2026-01-09 11:54:51 -05:00
chris britton
494e27a059 Wire discovery group for declarative validation 2026-01-09 11:54:51 -05:00
Kubernetes Prow Robot
c68de67df3 Merge pull request #136132 from pohly/ktesting-default-verbosity
ktesting: avoid increasing default verbosity
2026-01-09 22:17:50 +05:30
Kubernetes Prow Robot
908dab36f4 Merge pull request #136119 from lalitc375/ignore-conversion
Bring the fuzz testing  changes back which was removed due to  an accident
2026-01-09 22:17:42 +05:30
vshkrabkov
b78cdbfdf4 Adds test cases for multiple preEnqueue plugins 2026-01-09 15:35:48 +00:00
Patrick Ohly
80cc14831e E2E framework: fix nil pointer crash in TContext
Not all framework instances have a default namespace. TContext
crashed for those.
2026-01-09 16:23:11 +01:00
Kubernetes Prow Robot
aee92bc072 Merge pull request #136085 from richabanker/watchlist-init-log
Log WatchList initial listing phase completion
2026-01-09 20:51:48 +05:30
Kubernetes Prow Robot
a221280c53 Merge pull request #136084 from richabanker/watchlist-logs-audit
Add auditID to Watch start logs
2026-01-09 20:51:41 +05:30
Kubernetes Prow Robot
b1d3ab8a4b Merge pull request #136136 from dims/fix-devicemanager-race-condition
Fix data race in devicemanager PluginDisconnected logging
2026-01-09 19:39:43 +05:30
Patrick Ohly
36a95a05eb ktesting: avoid increasing default verbosity
Bumping to 5 is useful in unit tests. Those tend to not produce less output and
ideally use per-test output, so we end up keeping only the output of failed
tests where increased verbosity also in CI runs is useful.

But ktesting now also gets imported into e2e test binaries through the
framework. There the increased verbosity is apparently causing OOM killing in
some jobs which previously worked fine.

Long term we need a better solution than simply disabling the verbosity
change. We could modify each unit test to call SetDefaultVerbosity, but that's
tedious. Perhaps an env variable? It cannot be a command line flag because not
all unit tests accept `-v`.
2026-01-09 14:54:09 +01:00
Abhigyan Shekhar
7bc62e74ab FIX: Deep copy MapType in CEL composition to prevent data race
This commit fixes a fatal crash (concurrent map read/write) in
NewCompositedCompilerFromTemplate by:

- Refactoring CEL EnvSet composition to eliminate cloning and symbol conflicts
- Adding NewCompositedCompilerForTypeChecking for typechecking
- Removing deprecated CompositionEnv type and functions
- Adding regression test for concurrency race condition
- Using mustExtend helper function for clearer intent
2026-01-09 18:57:29 +05:30
Davanum Srinivas
1b33c52ef1 Fix data race in devicemanager PluginDisconnected logging
Don't log the endpoint struct in PluginDisconnected() - it contains
a gRPC client and logging it via reflection races with Close().

The logger walks the struct with reflection, reading gRPC internals,
while Close() is modifying mutex state in the background. Removing
the endpoint from the log avoids the race. The resourceName is already
logged which is enough to identify which endpoint disconnected.

This race becomes visible with gRPC v1.76.0+ due to timing changes
in buffer handling and goroutine lifecycle during Close(). The
ci-kubernetes-unit-dependencies job was hitting this ~10% of the time
when testing with updated dependencies.

CI failures:
- https://storage.googleapis.com/kubernetes-ci-logs/logs/ci-kubernetes-unit-dependencies/2009065501396832256/build-log.txt
- https://storage.googleapis.com/kubernetes-ci-logs/logs/ci-kubernetes-unit-dependencies/2008641956699181056/build-log.txt
- https://storage.googleapis.com/kubernetes-ci-logs/logs/ci-kubernetes-unit-dependencies/2007491912692404224/build-log.txt
- https://storage.googleapis.com/kubernetes-ci-logs/logs/ci-kubernetes-unit-dependencies/2007431281842851840/build-log.txt

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-09 08:19:33 -05:00
Kubernetes Prow Robot
c36cb4913d Merge pull request #136128 from p0lyn0mial/upstream-watchlist-kcm-options-cleanup
kcm: remove WatchListClient feature gate override
2026-01-09 16:39:47 +05:30
Kubernetes Prow Robot
407b1de3bf Merge pull request #136076 from kannon92/fix-flake-mutable-job
[flake] wait for job suspended condition for JobMutable test cases
2026-01-09 16:39:39 +05:30
Joel Speed
a64e802673 Enable nonullable rule for Kube API Linter 2026-01-09 10:38:15 +00:00
Kubernetes Prow Robot
6f93518c7f Merge pull request #136124 from MohammedMutee/fix-typecheck-flake
Fix flaky typecheck by enforcing serial execution
2026-01-09 15:05:41 +05:30
LoginovIlia
bfe4b7ecd7 kubeadm: switch tests to NewClientset 2026-01-09 04:30:53 -05:00
Lukasz Szaszkiewicz
4cccfe28e6 kcm: remove WatchListClient feature gate override
WatchListClient is enabled by default since 1.35, so the
kcm specific override in flags is no longer needed.
2026-01-09 10:23:25 +01:00
MohammedMutee
53d94b06b9 Fix flaky typecheck: enforce serial execution to prevent OOM 2026-01-09 10:40:43 +05:30
Lalit Chauhan
55041b832f Bring the changes back which was removed due to accident in #134909 2026-01-09 00:02:41 +00:00
Richa Banker
739e4150e6 Add auditID to Watch start logs 2026-01-08 14:33:56 -08:00
Lalit Chauhan
265394c0a5 Add utilities to allow strategy.go files to enable DV naitve validations 2026-01-08 22:24:03 +00:00
Lalit Chauhan
19fa5ef5eb apimachinery/field: Add MarkDeclarativeNative support to Error and ErrorList 2026-01-08 22:24:03 +00:00
Darshan Murthy
1c24a05ce1 wire network group for declarative validation and +k8s:required to IngressClassParametersReference.Name and IngressClassParametersReference.Kind (#134909) 2026-01-09 03:11:43 +05:30