Commit Graph

134395 Commits

Author SHA1 Message Date
Darren Shepherd
e60cf77d03 Drop client-go cloud auth 2026-06-12 11:54:18 -03:00
Kubernetes Release Robot
fc0e7a6ca5 Release commit for Kubernetes v1.35.6 v1.35.6 2026-06-11 18:05:07 +00:00
Kubernetes Prow Robot
6b479f6ae2 Merge pull request #139588 from cpanato/update-go-images-rel135
[release-1.35] [go]Bump images and versions to go 1.25.11 and distroless iptables
2026-06-09 20:41:41 +05:30
Carlos Panato
5ccf8f4ed5 Bump images and versions to go 1.25.11 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2026-06-09 15:13:36 +02:00
Kubernetes Prow Robot
ccae5e35aa Merge pull request #139447 from HirazawaUi/automated-cherry-pick-of-#139339-upstream-release-1.35
Automated cherry pick of #139339: kubeadm: fix dry-run CA copy paths in init certs
2026-06-09 01:31:47 +05:30
Kubernetes Prow Robot
4eb32205a4 Merge pull request #139509 from lalitc375/automated-cherry-pick-of-#139480-origin-release-1.35
Automated cherry pick of #139480: Fix wrong marking of errors
2026-06-08 20:47:40 +05:30
Kubernetes Prow Robot
508ff96062 Merge pull request #139229 from aramase/automated-cherry-pick-of-#139045-upstream-release-1.35
Automated cherry pick of #139045: fix(csi): preserve mount dir when NodePublish fails on a remount
2026-06-08 18:43:56 +05:30
Kubernetes Prow Robot
f5419c12b0 Merge pull request #138989 from pohly/automated-cherry-pick-of-#138885-origin-release-1.35
Automated cherry pick of #138885: DRA: fix AllocationModeAll with consumed counters
2026-06-08 18:43:48 +05:30
Kubernetes Prow Robot
3fd20ce37a Merge pull request #139362 from nojnhuh/automated-cherry-pick-of-#139017-upstream-release-1.35
Automated cherry pick of #139017: Fix dra scoring bug with mixed allocated and unallocated claims
2026-06-08 16:55:59 +05:30
Kubernetes Prow Robot
e8003b4073 Merge pull request #139234 from rahulbabu95/automated-cherry-pick-of-#138736-upstream-release-1.35
Automated cherry pick of #138736: fix: avoid panic on services with empty IPFamilies
2026-06-08 16:55:52 +05:30
Kubernetes Prow Robot
607d6c192d Merge pull request #139137 from gnufied/manual-cherry-pick-selinux-metrics-perf
Manual cherry pick selinux metrics perf
2026-06-08 16:55:45 +05:30
Kubernetes Prow Robot
79ce1711cb Merge pull request #139193 from liggitt/env-binary-1.35
[1.35] Restore ability to plumb binary data through envvar values
2026-06-08 12:08:32 +05:30
Lalit Chauhan
d44082b4bb Fix wrong marking of errors 2026-06-04 20:30:36 +00:00
bo.jiang
d2212b840d kubeadm: fix dry-run CA copy paths in init certs
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
2026-06-02 23:17:25 +08:00
John Belamaric
a74c5bff9a Fix DRA scoring bug with mixed allocated and unallocated claims 2026-05-28 13:02:21 -05:00
Rahul
77292b8b08 fix(endpoint): avoid panic on services with empty IPFamilies
Accessing svc.Spec.IPFamilies[0] without a bounds check panics when a
service reaches the controller with an empty IPFamilies field. This can
happen via watch events: the apiserver's defaultOnRead decorator populates
IPFamilies on GET/LIST but not on watch (cachingObject wrapping bypasses
the type assertion).

Restore the inference logic removed in #130101: fall back to ClusterIP
for headful services and pod IP for headless services.

Signed-off-by: Rahul <rahulbabu95@gmail.com>
2026-05-21 13:37:28 -07:00
Anish Ramasekar
df562ae381 fix(csi): preserve mount dir on NodePublish error during remount
On a remount (e.g. CSIDriver.spec.requiresRepublish=true), the volume is
already published and the pod is observing the existing bind mount.
Removing the mount dir on a NodePublish error left the pod with stale
contents that subsequent successful republishes could not repair.
2026-05-21 14:55:14 -05:00
Anish Ramasekar
f1ce76d7a1 feat(volume): add IsRemount to MounterArgs
Thread the reconciler's existing isRemount signal into MounterArgs so
volume plugins can distinguish an initial publish from a republish
(e.g. CSIDriver.spec.requiresRepublish=true). No behavior change.
2026-05-21 14:39:14 -05:00
Jordan Liggitt
b596e7bcff Restore ability to plumb binary data through envvar values 2026-05-20 13:55:47 -04:00
Hemant Kumar
4a0532be20 Cache selinux conflicts
Also prevent duplicate metric emissions
2026-05-18 10:53:28 -04:00
Ondra Kupka
fd08821205 controller/selinuxwarning/cache: Add reverse index
Added podToVolumes reverse index to optimize DeletePod.
Currently we simply iterate through all the volumes and remove the pod
being deleted from there. This is inefficient and takes longer the
longer the volume list becomes.

Keeping a map pod -> volumes makes removing a pod fast. We can just jump
to the relevant volumes directly and remove the pod from there.
2026-05-18 10:53:23 -04:00
Ondra Kupka
9f52f4d26c controller/selinuxwarning: Pre-parse SELinux label
When calling ControllerSELinuxTranslator.Conflicts(), the SELinux label
is repeatedly split into []string to detect conflicts. This causes a huge
number of allocations when there are many comparisons.

This is now made more efficient by pre-parsing the SELinux label and
storing it in podInfo as [4]string for fast comparison when needed.
2026-05-18 09:49:37 -04:00
takonomura
350f793a9c DRA: fix AllocationModeAll with consumed counters
When collecting all matching devices for AllocationModeAll, the allocator did not record the source pool on the candidate device. Devices with consumed counters use that pool when checking shared counter availability, which caused kube-scheduler to panic.

Set the pool on all-devices candidates in the stable, incubating, and experimental allocators, and add a shared regression test for AllocationModeAll with consumed counters.
2026-05-13 12:24:09 +02:00
Kubernetes Release Robot
90640ec14a Update CHANGELOG/CHANGELOG-1.35.md for v1.35.5 2026-05-12 10:02:44 +00:00
Kubernetes Release Robot
6636cbce3b Release commit for Kubernetes v1.35.5 v1.35.5 2026-05-12 09:50:49 +00:00
Kubernetes Prow Robot
f0a869dcd4 Merge pull request #138959 from neolit123/automated-cherry-pick-of-#138957-origin-release-1.35
Automated cherry pick of #138957: kubeadm: use dedicated ClusterRole for apiserver kubelet client
2026-05-11 17:53:51 +05:30
Micah Hausler
b9ffe7c06a kubeadm: use dedicated ClusterRole for apiserver kubelet client
Signed-off-by: Micah Hausler <mhausler@amazon.com>
2026-05-11 11:25:41 +02:00
Kubernetes Prow Robot
7777c57f30 Merge pull request #138501 from soltysh/automated-cherry-pick-of-#138499-upstream-release-1.35
Automated cherry pick of #138499: Ensure the path inside the container is correctly handled
2026-05-09 05:17:24 +05:30
Kubernetes Prow Robot
41b53108c5 Merge pull request #138153 from alimaazamat/automated-cherry-pick-of-#131950-upstream-release-1.35
Automated cherry pick of #131950: PodStartSLIDuration should exclude init container runtime, image pulling time, stateful pods, not immediately schedulable pods
2026-05-09 05:17:17 +05:30
Kubernetes Prow Robot
1c6008214d Merge pull request #138803 from neolit123/automated-cherry-pick-of-#138692-origin-release-1.35
Automated cherry pick of #138692: kubeadm: skip LocalAPIEndpoint defaulting on worker join
2026-05-08 17:25:17 +05:30
Seena Fallah
7909267f8b kubeadm: skip LocalAPIEndpoint defaulting on worker join
FetchInitConfigurationFromCluster always called SetAPIEndpointDynamicDefaults,
which invokes ChooseAPIServerBindAddress and requires a default route on the
host. Worker nodes joining the cluster don't need a LocalAPIEndpoint and may
legitimately have no default route, causing kubeadm join to fail with:

```
unable to fetch the kubeadm-config ConfigMap: unable to select an IP from
default routes.
```

Add a skipAPIEndpoint parameter to SetInitDynamicDefaults and pass
`!getAPIEndpoint` from FetchInitConfigurationFromCluster, so the endpoint
defaulter is bypassed when the caller did not request the endpoint (worker
join, non-control-plane reset/certs/upgrade paths).

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2026-05-06 11:08:39 +02:00
Kubernetes Prow Robot
ddbb265c8c Merge pull request #138636 from aojea/automated-cherry-pick-of-#138571-upstream-release-1.35
Automated cherry pick of #138571: kube-proxy: don't do full periodic syncs on large cluster mode
2026-05-06 06:34:20 +05:30
Kubernetes Prow Robot
935bba387c Merge pull request #138683 from neolit123/automated-cherry-pick-of-#138449-origin-release-1.35
Automated cherry pick of #138449: kubeadm: use the localAPIEndpoint for all API calls in 'init'
2026-05-05 20:30:26 +05:30
Kubernetes Prow Robot
a69783a282 Merge pull request #138602 from princepereira/automated-cherry-pick-of-#138000-upstream-release-1.35
Automated cherry pick of #138000: Delete remote endpoint if it has same ip as local endpoint in the system.
2026-05-05 08:04:21 +05:30
Lubomir I. Ivanov
f79279632e kubeadm: use the localAPIEndpoint for all API calls in 'init'
Historicaly the kubeadm clients have used the 'admin.conf'
and 'super-admin.conf' directly, which makes all API calls
go trough the CPE (control plane endpoint). This can create
problems for scenarios when the LB is provisioned only after
'init' starts the kube-apiserver.

Instead of using the '.conf' as they are, modify them
in memory to point to the LAE (localAPIEndpoint).
This was already done by the WaitControlPlaneClient for
the WaitControlPlane phase, which required it. This separate
client is no longer needed.

However, do use a unmodified kubeconfig to the init phase
bootstrap-token since this is the phase that creates
the cluster-info CM and for that we need the original CPE
server address.
2026-04-29 17:39:56 +02:00
Antonio Ojea
faa8112856 kube-proxy: don't do full periodic syncs on large cluster mode
Periodic full-syncs are just reconcile loops just in case somehow
the dataplane has drifted, however, they have an important cost on large
clusters.

We can avoid to perform full-sync if kube-proxy is in the "largecluster"
mode, we are already doing some optimization, so it is reasonable to
avoid the penalty of a full sync for a "just in case" operation.

Signed-off-by: Antonio Ojea <aojea@google.com>
2026-04-28 07:49:50 +00:00
Prince Pereira
943d941943 Delete remote endpoint if it has same ip as local endpoint in the system. 2026-04-26 09:54:46 +00:00
Prince Pereira
d550d458d3 Delete remote endpoint if it has same ip as local endpoint in the system. 2026-04-26 09:54:46 +00:00
Kubernetes Prow Robot
ec18059a92 Merge pull request #138539 from ahrtr/automated-cherry-pick-of-#138403-upstream-release-1.35
Automated cherry pick of #138403: kubeadm: Evaluate etcd cluster health using quorum
2026-04-23 18:46:49 +05:30
Benjamin Wang
6d314b2fd9 Add a (*Client) addEndpoint method
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2026-04-23 09:15:12 +01:00
Benjamin Wang
feb7fa1112 Evaluate etcd cluster health using quorum
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2026-04-23 09:15:11 +01:00
Kubernetes Prow Robot
7b57a4b185 Merge pull request #138434 from Argh4k/automated-cherry-pick-of-#138324-upstream-release-1.35
Automated cherry pick of #138324: scheduler: fix inFlightPods leak when pod is recreated during scheduling failure
2026-04-22 18:57:52 +05:30
Maciej Szulik
1a7f0b3dec Escape path inside the container
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-04-21 10:55:12 +02:00
Samarth Verma
6953afbad1 scheduler: address recreated pod review feedback 2026-04-17 06:40:11 +00:00
Samarth Verma
bf14155eb4 scheduler: skip requeueing recreated pods on scheduling failure 2026-04-17 06:39:06 +00:00
Samarth Verma
55f12e8477 scheduler: fix inFlightPods leak when pod is recreated during scheduling failure
handleSchedulingFailure can refresh podInfo from the informer before AddUnschedulableIfNotPresent. A delete and recreate with the same name may change the Pod UID while inFlightPods still tracks the UID from Pop, so Done and queueing-hint lookups must use that in-flight UID.

Add an explicit in-flight UID parameter, thread it through queueing-hint lookups, cover the same-name recreation case with a regression test, and check the returned error in updated test call sites.
2026-04-17 06:36:28 +00:00
Kubernetes Release Robot
31d47ca373 Update CHANGELOG/CHANGELOG-1.35.md for v1.35.4 2026-04-15 18:12:54 +00: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