Commit Graph

134908 Commits

Author SHA1 Message Date
darshansreenivas
897adb7b48 DRA: adding tag to node module
move DRA to a update method

fix boilerplate code

apply node normalize code at fuzz logic

adding normalization fix

fix nit
2025-12-04 23:03:21 -08:00
Alvaro Aleman
3d6a5d471f Service account controller: Wire through context
This change enables structured logging and cancellation in the service
account controller by replacing the usage of context.TODO with an actual
context.
2025-12-04 19:30:55 -05:00
Kubernetes Prow Robot
9293f9326d Merge pull request #135591 from p0lyn0mial/upstream-watchlist-reflector-log-fallback
downgrade reflector watchlist fallback log to V(4)
2025-12-04 14:42:56 -08:00
Kubernetes Prow Robot
04e8064bcc Merge pull request #135580 from serathius/client-go-transformer
Embed proper interface in TransformingStore to ensure DeltaFIFO and RealFIFO are implementing it
2025-12-04 12:55:04 -08:00
Kubernetes Prow Robot
de61f59895 Merge pull request #135536 from dims/bump-x/crypto-to-v0.45.0
Bump golang.org/x/crypto to v0.45.0
2025-12-04 12:54:56 -08:00
Kubernetes Prow Robot
2711e8cb53 Merge pull request #135499 from aojea/crazy_ipallocator
ipallocator: handle errors correctly
2025-12-04 10:21:02 -08:00
Lukasz Szaszkiewicz
3f42ca1401 downgrade reflector watchlist fallback log to V(4) 2025-12-04 19:05:46 +01:00
k-diger
b255410b4f Remove duplicate connection management in DRA plugin Fixes 2025-12-05 01:34:44 +09:00
Dan Winship
e1b20366e3 Handle the case of a pod IP being reused while the old Pod still exists
If the pod network reuses a pod IP while the old pod is still
terminating, then we may temporarily see two Endpoints for that IP. In
that case, prefer the non-terminating one.
2025-12-04 10:35:34 -05:00
Dan Winship
bc8aa8c067 Remove incorrect special-case when Endpoints move between EndpointSlices
The code was assuming that if an Endpoint got moved from one slice to
another, and one is "local" but the other isn't, then we should prefer
the local one. But this doesn't make sense; if it's actually the same
Endpoint (i.e., same targetRef) then both copies will have the same
Hostname. And if it's not the same Endpoint, then one of the two
Endpoints is wrong, but there's no reason to assume it's the non-local
one.
2025-12-04 10:30:00 -05:00
Patrick Ohly
91e221b047 DRA upgrade/downgrade: roll over only after -alpha.0
All version up to and including x.y.z-alpha.0 are treated as if we were
still the previous minor version x.(y-1). There are two reason for this:

- During code freeze around (at?) -rc.0, the master branch already
  identfies itself as the next release with -alpha.0. Without this
  special case, we would change the version skew testing from what
  has been tested and been known to work to something else, which
  can and at least once did break.

- Early in the next cycle the differences compared to the previous
  release are small, so it's more interesting to go back further.
2025-12-04 14:25:12 +01:00
Jordan Liggitt
91368adbb5 Use transformer in consistency checker 2025-12-04 14:17:22 +01:00
Valerian Roche
76da8d6de0 Add unit tests for Data Consistency Detector 2025-12-04 14:17:19 +01:00
Valerian Roche
88c20d46a4 [client-go #1415] Embed proper interface in TransformingStore to ensure DeltaFIFO and RealFIFO are implementing it
Signed-off-by: Valerian Roche <valerian.roche@datadoghq.com>
2025-12-04 13:46:08 +01:00
Patrick Ohly
1aa69e5f46 DRA upgrade/downgrade: remove kube-controller-manager workaround
https://github.com/kubernetes/kubernetes/pull/132533 solved
https://github.com/kubernetes/kubernetes/issues/132334 in 1.34 and got
backported to 1.33 in https://github.com/kubernetes/kubernetes/pull/134676.

This enables n-2 skew testing between 1.35 and 1.33 without the workaround.
2025-12-04 13:36:39 +01:00
Patrick Ohly
36dbf37cf1 DRA upgrade/downgrade: better Gomega failure for system log output
Truncating the kube-controller-manager log output at the end when waiting for
"Caches are synced" fails isn't useful because it doesn't show how far the
controller got (might be stuck). This can be solved by implementing
GomegaStringer with truncation in the middle.
2025-12-04 13:34:22 +01:00
Kubernetes Prow Robot
615ac0d299 Merge pull request #135560 from lalitc375/map-debug
Fix MAP failure on objects with duplicate list items
2025-12-03 16:14:20 -08:00
Kubernetes Prow Robot
3025b0a7b4 Merge pull request #135553 from neoaggelos/neo/publishing-bot-rules-v1.35
add release-1.35 publishing bot rules
2025-12-03 05:40:21 -08:00
Angelos Kolaitis
c6fa10dbb7 add release-1.35 publishing bot rules 2025-12-03 14:33:16 +02:00
Kubernetes Prow Robot
579d4c6d06 Merge pull request #135568 from neoaggelos/neo/etcd-supported-versions
add skew -2 version in SupportedEtcdVersion
2025-12-03 04:10:26 -08:00
Angelos Kolaitis
03066850f6 remove TestEtcdSupportedVersionLength, no longer relevant
Signed-off-by: Angelos Kolaitis <neoaggelos@gmail.com>
2025-12-03 13:19:09 +02:00
Angelos Kolaitis
aa54ffa485 fix etcd versions after rotation
Signed-off-by: Angelos Kolaitis <neoaggelos@gmail.com>
2025-12-03 13:15:49 +02:00
Angelos Kolaitis
4a944d1a3f add skew -2 version in SupportedEtcdVersion
Signed-off-by: Angelos Kolaitis <neoaggelos@gmail.com>
2025-12-03 13:11:10 +02:00
Antonio Ojea
51f614a156 ipallocator: handle errors correctly
The ipallocator was blindly assuming that all errors are retryable, that
causes that the allocator tries to exhaust all the possibilities to
allocate an IP address.

If the error is not retryable this means the allocator will generate as
many API calls as existing available IPs are in the allocator, causing
CPU exhaustion since this requests are coming from inside the apiserver.

In addition to handle the error correctly, this patch also interpret the
error to return the right status code depending on the error type.

Co-authored-by: carlory <baofa.fan@daocloud.io>
2025-12-03 10:39:57 +00:00
Antonio Ojea
38e08c231c kube-proxy: optimize conntrack cleanup with O(n) flow filter
Previously, we created a separate filter for each stale flow,
resulting in O(n^2) complexity when deleting flows because the
netlink llibrary iterates over all filters for each flow.

This change introduces a new filter backed by a `sets.Set` for O(1) lookup per flow.
This reduces the overall complexity of cleaning up stale entries to O(n).
2025-12-03 10:35:29 +00:00
Lalit Chauhan
de1b8e076a Fix MAP failure on objects with duplicate list items
When a Mutating Admission Policy (MAP) using ApplyConfiguration was applied to an existing object containing duplicate items in a list (e.g., duplicate environment variables), the operation would fail with a conversion error from Structured Merge Diff.

This change updates the `ApplyStructuredMergeDiff` function to use `typed.AllowDuplicates` when converting the `originalObject`. This allows MAP to process existing objects that may have technically invalid (duplicate) entries but are permitted by legacy validation.

New patches generated by the policy are still strictly validated and cannot introduce new duplicates.

Tests have been added to verify:
1. MAP can process an object with duplicate env vars.
2. MAP can modify an existing env var in an object with duplicates (which has the side effect of deduplicating the entry).
2025-12-02 23:27:55 +00:00
Aditi Gupta
915866f0e4 apimachinery: Use informer.RunWithContext in various components 2025-12-02 15:02:04 -08:00
Davanum Srinivas
1f1d197701 Drop unnecessary usegocmp build tag
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-12-02 14:28:27 -05:00
Kubernetes Release Robot
76b76c2d52 CHANGELOG: Update directory for v1.35.0-rc.0 release 2025-12-02 17:16:33 +00:00
Dan Winship
531be81208 Move proxier cleanup code into separate files.
(No code changes, just moving between files.)
2025-12-02 11:05:00 -05:00
Dan Winship
9f4edccb97 Move proxier supportedness-checking code into separate files.
(No code changes, just moving between files.)
2025-12-02 11:05:00 -05:00
Dan Winship
fe84ab85f1 Move conntrack sysctl setup from cmd/kube-proxy/ to pkg/proxy/conntrack/
Eventually this code will be called from the backends themselves.
2025-12-02 11:03:00 -05:00
Dan Winship
d8a481a696 Move setupConntrack from server_linux.go to conntrack.go 2025-12-02 11:02:58 -05:00
Dan Winship
3ecc3c9e6e Clean up some code we're about to move
So linter-hints won't complain about it in the new file.
2025-12-02 09:54:56 -05:00
Maciej Skoczeń
e22a30a13e Add scheduling duration collector to scheduler_perf 2025-12-02 14:48:22 +00:00
Kubernetes Prow Robot
ec1bf8a4f3 Merge pull request #135545 from cpanato/update-rules
update publishing rules
v1.36.0-alpha.0
2025-12-02 05:18:25 -08:00
Carlos Panato
f8be8d320f drop rules for release-1.31 as it is EOL
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-12-02 13:07:18 +01:00
Carlos Panato
7e3e9b6a64 update publishing rules
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-12-02 13:03:45 +01:00
Kubernetes Prow Robot
cb689abdfb Merge pull request #135492 from cpanato/update-go-125
[go] Bump images and versions to go 1.25.4 and distroless iptables
2025-12-02 02:18:24 -08:00
Kubernetes Prow Robot
d4d5fd8f9b Merge pull request #135535 from Rajalakshmi-Girish/remove-test-watch-stream-sep
Remove TestWatchStreamSeparation from storage/cacher related tests
2025-12-01 23:10:26 -08:00
Vikas
984879753e Fix context deadline exceeded in PodCertificate test 2025-12-02 12:37:21 +05:30
lucming
9c3167d3cc fix: Check Statfs_t type using unix package only 2025-12-02 12:28:40 +08:00
Davanum Srinivas
1240604ebf Drop usages of archived dependency - github.com/grpc-ecosystem/go-grpc-prometheus
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-12-01 20:53:55 -05:00
Dan Winship
d6d3bc88a1 Add an interface type to prevent a future import loop 2025-12-01 18:40:12 -05:00
Davanum Srinivas
5302b929ae Bump golang.org/x/crypto to v0.45.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-12-01 14:11:01 -05:00
Rajalakshmi-Girish
fcdc4e2495 Remove TestWatchStreamSeparation from storage/cacher related tests 2025-12-01 10:25:10 -08:00
Aditi Gupta
23209fc098 refactor(apiextensions-apiserver): Make finalizingController controller context-aware 2025-12-01 09:25:57 -08:00
Dan Winship
905492223b Remove workaround for an old bug.
Kubernetes no longer supports containerd 1.7, and the workaround is
not needed with containerd 2.x (or cri-o).
2025-12-01 11:02:20 -05:00
xigang
8f1ff1d8ce Refactor PV controller to use rate-limiting queues and improve error handling
Signed-off-by: xigang <wangxigang2014@gmail.com>
2025-12-01 19:11:52 +08:00
Maciej Wyrzuc
9a8c2a4001 Fix example with profiling in README 2025-12-01 10:44:15 +00:00