Commit Graph

134370 Commits

Author SHA1 Message Date
Vitor Savian
5a5ef71206 Fix typo and remove default scheduler config 2026-04-15 20:10:54 -03:00
galal-hussein
6afb8456f2 Add the ability to add extra admission plugins
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2026-04-15 20:10:54 -03:00
galal-hussein
b5a9c4608c Ignore nfacct init error in kube-proxy
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2026-04-15 20:10:54 -03:00
Erik Wilson
8680695562 Add Vagrantfile 2026-04-15 20:10:54 -03:00
Darren Shepherd
869e553c3d Add tag.sh script
Add DefaultKubeBinaryVersion to the tag script

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2026-04-15 20:10:54 -03:00
Darren Shepherd
54f6215332 Fix CSI initialization conflict
CSI is used by both the kubelet and kube-controller-manager.  Both
components will initialize the csiPlugin with different VolumeHost
objects.  The csiPlugin will then assign a global variable for
the node info manager.  It is then possible that the kubelet gets
the credentials of the kube-controller-manager and that will cause
CSI to fail.
2026-04-15 20:10:54 -03:00
Darren Shepherd
f3d193bbcb Allow override of "kubernetes" endpoint port 2026-04-15 20:10:54 -03:00
Darren Shepherd
aa3a41c54f Notify startup to grab a hold of handler and authenticator
Fix to the completed options config

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2026-04-15 20:10:54 -03:00
Darren Shepherd
3d8394f845 Add stopCh to apiserver & context to kublet commands
Remove SetupSignalContext call from the apiserver

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2026-04-15 20:10:54 -03:00
Erik Wilson
8967c32671 Update kubernetes service on start for port changes 2026-04-15 20:10:54 -03:00
Darren Shepherd
c84cecc657 Don't ever select the flannel bridge or cni bridge 2026-04-15 20:10:54 -03:00
Darren Shepherd
1192bc4caf Cache loopback cert in the certs dir if set 2026-04-15 20:10:54 -03:00
Darren Shepherd
d5a5a057c9 Add ability to disable proxy hostname check 2026-04-15 20:10:54 -03:00
Darren Shepherd
802e49c5ff Hide deprecated warnings 2026-04-15 20:10:54 -03:00
Darren Shepherd
01a345a6fa Set all sources so node+agent in the same process doesn't get restricted 2026-04-15 20:10:54 -03:00
Darren Shepherd
470a0698a2 Don't check for cpuset cgroup, not always required? 2026-04-15 20:10:54 -03:00
Darren Shepherd
081d59367d Wait for kube-apiserver for 2 minutes for slow (ARM) systems 2026-04-15 20:10:54 -03:00
Darren Shepherd
04618e6fcc Make kubelet.sock path changable 2026-04-15 20:10:54 -03:00
Darren Shepherd
2a65c71d72 only use the resolved name if port was zero 2026-04-15 20:10:54 -03:00
Darren Shepherd
d91afb323e If you can't set hashsize on nf_conntrack don't fail 2026-04-15 20:10:54 -03:00
Darren Shepherd
0f720b41ee Drop credential providers 2026-04-15 20:10:54 -03:00
Darren Shepherd
993eaf4177 Drop storage plugins 2026-04-15 20:10:54 -03:00
Darren Shepherd
a640582b85 Drop client-go cloud auth 2026-04-15 20:10:54 -03:00
Kubernetes Release Robot
7b8c6cf0ed Release commit for Kubernetes v1.35.4 v1.35.4 2026-04-15 18:01:22 +00:00
Kubernetes Prow Robot
93828861e0 Merge pull request #138356 from dims/update-moby-spdystream-v0.5.1-1.35
[1.35] Update github.com/moby/spdystream from v0.5.0 to v0.5.1
2026-04-14 17:10:39 +05:30
Kubernetes Prow Robot
0f1efab345 Merge pull request #138348 from dashpole/update_prop_35
[release-1.35] Update go.opentelemetry.io/otel to v1.41.0
2026-04-14 07:02:34 +05:30
Davanum Srinivas
1687aa8c94 Update github.com/moby/spdystream from v0.5.0 to v0.5.1
Kubernetes-commit: 7e9c2c8eef26f99aa2f94d8e09d6d32de86c7769
2026-04-13 14:14:40 -04:00
David Ashpole
e87f6b927b update go.opentelemetry.io/otel to v1.41.0 2026-04-13 14:38:58 +00:00
Kubernetes Prow Robot
c889751f78 Merge pull request #138042 from zxqlxy/automated-cherry-pick-of-#135485-upstream-release-1.35
Automated cherry pick of #135485: Fix device plugin admission failure after container restart
2026-04-10 04:38:18 +05:30
Kubernetes Prow Robot
c9622e9b4d Merge pull request #138304 from xmudrii/update-go-1.35
[release-1.35] Bump images and versions to go 1.25.9 and distroless iptables
2026-04-10 02:28:18 +05:30
Marko Mudrinić
97ccbdf2ee Bump images and versions to go 1.25.9 and distroless iptables
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2026-04-09 21:52:20 +02:00
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
Francesco Romani
1d5e94efa2 podresources: filter out inactive pods in Get()
Currently the provider that the podresources API
consumes does *not* obviously filters out the terminal
pod, and this is corroborated by the fact the related
e2e test starts to fail.
We had a bug in the test which masked the real failure,
but now it's evident.

So we perform a trivial extraction of the kubelet filtering
code and we apply in both places.
Note that the existing flow is unaffected except for the
trivial code extraciton.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2026-03-27 19:44:50 +00:00
Francesco Romani
91a1e8b2db e2e: node: podresources: fix expectations for Get() and terminated pods
terminated pods should not be reported by Get() calls,
we should get an error instead

Signed-off-by: Francesco Romani <fromani@redhat.com>
2026-03-27 19:44:50 +00:00
Sascha Grunert
9d8bbea593 Fix device plugin admission failure after container restart
When a container restarts before kubelet restarts, containerMap has
multiple entries (old exited + new running). GetContainerID() may
return the exited container, causing the running check to fail. Fixed
by checking if ANY container for the pod/name is running.

Also filter terminal pods from podresources since they no longer
consume resources, and fix test error handling to avoid exiting
Eventually immediately on transient errors.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2026-03-26 21:39:40 +00: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