Commit Graph

134327 Commits

Author SHA1 Message Date
Lalit Chauhan
d8a562b647 Fix backport differences for 1.35 (remove WithOrigin and MarkAlpha) 2026-03-20 08:20:51 +00:00
yongruilin
b6ee759d8e Add slice and map union member support with tests
- Code generator: use len() != 0 for slice/map member extractors
  instead of != nil, so empty slice/map are treated as "not set"
- Add slice and map members to union test types (both discriminated
  and undiscriminated)
- Add test coverage for nil vs empty, ratcheting, and nil oldObj
  with slice/map members

Co-authored-by: Tim Hockin <thockin@google.com>
2026-03-20 08:17:42 +00:00
yongruilin
3d39627cd9 Use IsZero instead of IsNil for union ratcheting check
- Use reflect.ValueOf(oldObj).IsZero() instead of IsNil() so union
  validation works with non-nilable T (e.g. value types)
- Remove hasOldValue guard from inner loop conditionals; only check
  at the final ratcheting skip point
- Add doc comments explaining T is "any" rather than "comparable"
  because union members can be slices
- Add value-type subtests for Union and DiscriminatedUnion

Co-authored-by: Tim Hockin <thockin@google.com>
2026-03-20 08:16:18 +00:00
yongruilin
7b708cc7c6 Add DRA test for device attribute with no value set
Test that declarative validation catches a DeviceAttribute with no
value fields set, which was the original bug scenario where union
ratcheting incorrectly skipped validation for new map entries.
2026-03-20 08:16:18 +00:00
yongruilin
863ed56ac0 Add nil OldValue test coverage for union doc_tests
Add tests for Union, DiscriminatedUnion, and ZeroOrOneOfUnion
validating that nil oldObj (new map entry or newly-set pointer
field during update) does not skip validation via ratcheting.
2026-03-20 08:16:18 +00:00
yongruilin
9a39e5c49f Fix union validation ratcheting when oldObj is nil
When oldObj is nil (e.g. new map entry added during update), union
ratcheting incorrectly treats nil old and empty new as unchanged
membership, skipping validation entirely. Fix by checking
reflect.ValueOf(oldObj).IsNil() and disabling ratcheting when
oldObj is nil, so the new value is fully validated.

This affects Union, DiscriminatedUnion, and ZeroOrOneOfUnion
(via unionValidate).
2026-03-20 08:16:17 +00:00
Kubernetes Prow Robot
a886e95855 Merge pull request #137807 from danwinship/automated-cherry-pick-of-#137501-origin-release-1.35
Automated cherry pick of #137501: Fix kube-proxy on systems with nft 1.1.3 (take 2)
2026-03-19 18:04:32 +05:30
Kubernetes Release Robot
4c0429295c Update CHANGELOG/CHANGELOG-1.35.md for v1.35.3 2026-03-18 18:41:39 +00:00
Kubernetes Release Robot
6c1cd99aef Release commit for Kubernetes v1.35.3 v1.35.3 2026-03-18 18:30:07 +00:00
Alessio Attilio
93de120edf pkg/proxy/nftables: fix kube-proxy crash with newer nftables versions
Fixes kube-proxy's nftables mode to work on systems with nft 1.1.3.
2026-03-17 08:05:07 -04:00
Dan Winship
6b5673451a Update knftables to v0.0.21 2026-03-17 08:05:07 -04:00
Kubernetes Prow Robot
b6f632ba56 Merge pull request #137569 from fuweid/cp-1374942-135
[release-1.35] cmd/kubeadm: ignore EINVAL error during unmount
2026-03-11 19:13:38 +05:30
Kubernetes Prow Robot
f50342991f Merge pull request #137400 from Chandan9112/automated-cherry-pick-of-#137252-upstream-release-1.35
Automated cherry pick of #137252: Use localhost Image Reference in PodObservedGenerationTracking E2E Test
2026-03-11 18:03:39 +05:30
Kubernetes Prow Robot
fe6a745e59 Merge pull request #137382 from BenTheElder/no-rules
drop publishing rules from dependencies.yaml on release branch
2026-03-11 17:03:38 +05:30
Kubernetes Prow Robot
77d8b636d2 Merge pull request #137257 from ahrtr/automated-cherry-pick-of-#137251-upstream-release-1.35
Automated cherry pick of #137251: kubeadm: do not add learner member to etcd client endpoints
2026-03-11 15:01:43 +05:30
Kubernetes Prow Robot
d595aafbbb Merge pull request #137047 from vikasbolla/automated-cherry-pick-of-#135611-upstream-release-1.35
[release-1.35]Automated cherry pick of #135611: Fix flake TestDeviceTaintRule test
2026-03-11 15:01:36 +05:30
Wei Fu
b57e146aec cmd/kubeadm: ignore EINVAL error during unmount
If /var/lib/kubelet is MS_SHARED mountpoint, all the mountpoints
under /var/lib/kubelet will have duplicate one. When `kubeadm reset -f`
is executed, it will try to umount one path twice. However, they are in
the peer group. Once we umount one path, the duplicate one will be
umounted as well. So, in this case, we should ignore EINVAL error.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit 2634261c17)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-03-09 10:14:05 -04:00
Kubernetes Prow Robot
a0e5f1aba5 Merge pull request #136903 from pohly/automated-cherry-pick-of-#136455-origin-release-1.35
Automated cherry pick of #136455: fake client-go: un-deprecate NewSimpleClientset
2026-03-05 00:46:20 +05:30
Chandan Maurya
af6488c9d5 Use localhost image reference in PodObservedGenerationTracking test
The test uses an invalid image to induce a pull error. The previous image
name 'some-image-that-doesnt-exist' causes slow DNS/registry resolution
on some environments (especially metal), leading to 30s timeouts.

Using 'localhost/some-image-that-does-not-exist' makes the pull fail
instantly since there is no registry on localhost, avoiding flaky
timeouts.
2026-03-04 18:02:34 +05:30
Kubernetes Prow Robot
60ebb8adeb Merge pull request #137366 from tsj-30/automated-cherry-pick-of-#137253-upstream-release-1.35
Automated cherry pick of #137253:  DRA: start scheduler after creating binding/non-binding slicesin Basicflow
2026-03-04 16:00:21 +05:30
Benjamin Elder
61003ad140 drop publishing rules from dependencies.yaml on release branch
we only use the rules in the master branch

since we don't need rules.yaml, we don't have two places to match, so we can drop the golang version entirely from this file

bump .go-version alone will be sufficient* on release branches after https://github.com/kubernetes/kubernetes/pull/136954

* ignoring e2e images like agnhost, which will require follow-up PRs ...
2026-03-03 14:33:21 -08:00
Kubernetes Prow Robot
4e48345fc1 Merge pull request #136929 from BenTheElder/1.35-clean-fix
1.35: add dockerized go cache chmod to `make clean`
2026-03-03 17:37:21 +05:30
S J Tharun
b9be60a8c5 start scheduler after creating binding/non-binding slices 2026-03-03 16:21:08 +05:30
S J Tharun
659d489e8d dra: stabilize DeviceBindingConditions BasicFlow by creating without-binding slice first 2026-03-03 16:21:08 +05:30
Kubernetes Prow Robot
946b7f7108 Merge pull request #136387 from vikasbolla/automated-cherry-pick-of-#135567-upstream-release-1.35
[release1.35]Automated cherry pick of #135567: Fix flaky TestApplyCRDuringCRDFinalization test
2026-03-03 14:41:23 +05:30
Kubernetes Release Robot
02115b6ee1 Update CHANGELOG/CHANGELOG-1.35.md for v1.35.2 2026-02-26 20:14:22 +00:00
Kubernetes Release Robot
fdc9d74cbf Release commit for Kubernetes v1.35.2 v1.35.2 2026-02-26 20:02:50 +00:00
Paco Xu
1c0c911c3c kubeadm: do not add learner member to etcd client endpoints 2026-02-26 10:28:59 +00:00
Karthik Bhat
d05c506539 Fix flake TestDeviceTaintRule test by adjusting event hanlder status update logic Co-authored-by: Pohly <patrick.ohly@intel.com> 2026-02-16 15:29:03 +05:30
Kubernetes Prow Robot
55c0a83ea2 Merge pull request #136985 from cpanato/update-go-rel135
[release-1.35] [go] Bump images and versions to go 1.25.7 and distroless iptables
2026-02-12 20:54:02 +05:30
Carlos Panato
69d9b9ba0c Bump images and versions to go 1.25.7 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2026-02-12 14:13:41 +01:00
Benjamin Elder
2371267d2f add dockerized go cache to make clean 2026-02-10 15:18:30 -08:00
Kubernetes Release Robot
de51841dbf Update CHANGELOG/CHANGELOG-1.35.md for v1.35.1 2026-02-10 13:04:44 +00:00
Kubernetes Release Robot
8fea90b452 Release commit for Kubernetes v1.35.1 v1.35.1 2026-02-10 12:53:13 +00:00
Patrick Ohly
bd39991737 fake client-go: un-deprecate NewSimpleClientset
NewSimpleClientset was marked as deprecated when NewClientset was
introduced. This has caused some confusion:
- Not all packages have NewClientset (https://github.com/kubernetes/kubernetes/issues/135980).
- Tests that work with NewSimpleClientset fail when
  switched to NewClientset (https://github.com/kubernetes/kubernetes/issues/136327)
  because of missing CRD support (https://github.com/kubernetes/kubernetes/issues/126850).

It doesn't seem burdensome to keep NewSimpleClientset around forever. Some unit
tests may even prefer to use it when they don't need server-side apply (less
overhead). Therefore there is no need to deprecate it.

This avoids churn in the eco system because contributors no longer create PRs
"because the linter complains about the usage of a deprecated function".
2026-02-10 10:07:55 +01:00
Kubernetes Prow Robot
a83897d921 Merge pull request #136491 from AutuSnow/automated-cherry-pick-of-#136325-upstream-release-1.35
Automated cherry pick of #136325: fix(expansion):Resolve the issue of UTF-8 characters being truncated
2026-02-06 04:26:44 +05:30
Kubernetes Prow Robot
b7392aa769 Merge pull request #136463 from rogowski-piotr/automated-cherry-pick-of-#135919-upstream-release-1.35
Automated cherry pick of #135919: kubelet(dra): fix handling of multiple ResourceClaims when one is already prepared
2026-02-06 04:26:37 +05:30
Kubernetes Prow Robot
3824a917e4 Merge pull request #136280 from seekskyworld/automated-cherry-pick-of-#135918-origin-release-1.35
Automated cherry pick of #135918: kubectl: Fix panic in exec terminal size queue
2026-02-06 04:26:29 +05:30
Kubernetes Prow Robot
64610fd9c9 Merge pull request #136348 from dlipovetsky/automated-cherry-pick-of-#136014-upstream-release-1.35
Automated cherry pick of #136014: kubeadm: waiting for etcd learner member to be started before promoting during 'kubeadm join'
2026-02-06 03:10:30 +05:30
Kubernetes Prow Robot
e33a0a8820 Merge pull request #136373 from princepereira/automated-cherry-pick-of-#136241-upstream-release-1.35
Automated cherry pick of #136241: Fix for preferred dualstack and required dualstack in winkernel proxier.
2026-02-05 19:08:41 +05:30
Kubernetes Prow Robot
3fc08a07d4 Merge pull request #136141 from shwetha-s-poojary/automated-cherry-pick-of-#135666-upstream-release-1.35
Automated cherry pick of #135666: Fixes the flaky `TestWebhookConverterWithWatchCache` test
2026-02-05 19:08:32 +05:30
Kubernetes Prow Robot
5e1e6fe717 Merge pull request #136593 from RomanBednar/automated-cherry-pick-of-#136202-upstream-release-1.35
Automated cherry pick of #136202: csi: raise kubelet CSI init backoff to cover ~140s DNS delays
2026-02-05 17:32:47 +05:30
Kubernetes Prow Robot
b254879c47 Merge pull request #136567 from pohly/automated-cherry-pick-of-#136269-origin-release-1.35
Automated cherry pick of #136269: DRA scheduler: double allocation fixes
2026-02-05 17:32:39 +05:30
Kubernetes Prow Robot
6eec445512 Merge pull request #136432 from thc1006/cherry-pick-136028-release-1.35
[release-1.35] fix(kubelet): convert V().Error() to V().Info() for verbosity-aware logging
2026-02-05 17:32:31 +05:30
Kubernetes Prow Robot
1c8457462e Merge pull request #136466 from cpanato/update-go-1256-rel135
[release-1.35] [go] Bump images and versions to go 1.25.6 and distroless iptables
2026-01-31 04:22:27 +05:30
Kubernetes Prow Robot
8494d39c53 Merge pull request #136634 from dims/automated-cherry-pick-of-#136529-#136554-upstream-release-1.35
Automated cherry pick of #136529: test: Read /proc/net/nf_conntrack instead of using conntrack binary
#136554: test: Fix KubeProxy CLOSE_WAIT test for IPv6 environments (and where /proc/net/nf_conntrack may be missing)
2026-01-30 04:11:50 +05:30
Davanum Srinivas
9bfc5ec55a Apparently some EC2 images we use do not have /proc/net/nf_conntrack
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:01:32 -05:00
Davanum Srinivas
33b34518ba test: cleanup from review
- Use netutils.IsIPv6(ip) instead of manual nil/To4 check
- Remove unnecessary ip.To16() call since IPv6 is already 16 bytes
- Remove ipFamily from grep pattern since IP format ensures correctness

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:01:32 -05:00
Davanum Srinivas
9aad402781 test: Fix KubeProxy CLOSE_WAIT test for IPv6 environments
The /proc/net/nf_conntrack file uses fully expanded IPv6 addresses
with leading zeros in each 16-bit group. For example:
  fc00:f853:ccd:e793::3 -> fc00:f853:0ccd:e793:0000:0000:0000:0003

Add expandIPv6ForConntrack() helper function to expand IPv6 addresses
to the format used by /proc/net/nf_conntrack before using them in
the grep pattern.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:01:32 -05:00
Davanum Srinivas
701cf03e7b test: Read /proc/net/nf_conntrack instead of using conntrack binary
The distroless-iptables image no longer includes the conntrack binary
as of v0.8.7 (removed in kubernetes/release#4223 since kube-proxy no
longer needs it after kubernetes#126847).

Update the KubeProxy CLOSE_WAIT timeout test to read /proc/net/nf_conntrack
directly instead of using the conntrack command. The file contains the
same connection tracking data and is accessible from the privileged
host-network pod.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:01:29 -05:00