Commit Graph

134336 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
a0ce4b96db Merge pull request #137926 from soltysh/automated-cherry-pick-of-#137904-upstream-release-1.35
Automated cherry pick of #137904: KEP-961: demote maxUnavailable feature in statefulset to off by default
2026-04-09 17:50:21 +05:30
Kubernetes Prow Robot
82a705ccae Merge pull request #137927 from lalitc375/cherry-pick-137864
Cherry pick of 137864
2026-04-09 16:04:20 +05:30
Kubernetes Prow Robot
e23757c9c8 Merge pull request #138137 from liggitt/automated-cherry-pick-of-#138131-upstream-release-1.35
Automated cherry pick of #138131: Deflake TestPodSubresourceAuth by waiting for effective permissions before testing
2026-04-09 15:09:33 +05:30
Jordan Liggitt
46ba1c3c27 Deflake TestPodSubresourceAuth by waiting for effective permissions before testing 2026-03-31 12:33:40 -04:00
Kubernetes Prow Robot
a09ab89a6e Merge pull request #136281 from chaochn47/automated-cherry-pick-of-#135685-upstream-release-1.35
Automated cherry pick of #135685: Bugfix: calculate request latency properly in audit log filter
2026-03-27 00:28:23 +05:30
Kubernetes Prow Robot
e54bba53d9 Merge pull request #137885 from HirazawaUi/automated-cherry-pick-of-#137146-upstream-release-1.35
Automated cherry pick of #137146: kubelet: fix containers not restarting when sidecar keeps running
2026-03-21 01:30:15 +05:30
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
Maciej Szulik
b0ec348c24 KEP-961: demote maxUnavailable feature in statefulset to off by default
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-03-20 08:53:35 +01: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
George Angel
570f471d7c kubelet: fix sidecar restart after kubelet restart
When a pod has a sidecar (initContainer with restartPolicy: Always) with
a startupProbe, and one or more regular containers crash after a kubelet
restart, the kubelet fails to restart the regular containers. RestartCount
stays at 0 indefinitely.

When ChangeContainerStatusOnKubeletRestart is disabled (default in v1.35),
the prober worker skips seeding probe results for containers that predate
the kubelet restart. For a sidecar with a startupProbe this means
startupManager.Get() returns found=false permanently. In
computeInitContainerActions, the sidecar Running case breaks out early at
the !found check, leaving podHasInitialized=false. computePodActions then
returns early at the !hasInitialized guard without restarting the crashed
regular containers.

Fix: when the gate is off and a restartable init container's startup probe
is being seeded for the first time after a kubelet restart, check the
container's Started field in the pod status. If Started=true, the sidecar
had already passed startup before the restart, so seed the startup manager
with Success. This allows computeInitContainerActions to detect pod
initialization via the sidecar Running path without altering readiness or
liveness probe seeding behaviour.

Add and update tests to cover the fix:
- worker unit tests for sidecar startup/readiness/liveness restart behaviour
- e2e node regression test for sidecar with startupProbe across kubelet restart

Fixes: https://github.com/kubernetes/kubernetes/issues/136910
2026-03-19 19:08:41 +08:00
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