Commit Graph

132113 Commits

Author SHA1 Message Date
Carlos Panato
86f29bf874 Bump dependencies, images and versions used to Go 1.24.12 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2026-01-30 11:24:34 +01:00
Kubernetes Prow Robot
0cfcccf6c0 Merge pull request #136635 from dims/automated-cherry-pick-of-#136529-#136554-upstream-release-1.34
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:09:48 +05:30
Davanum Srinivas
4c5332710c 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:02:00 -05:00
Davanum Srinivas
77976dc0f7 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:02:00 -05:00
Davanum Srinivas
5d4cdfdee8 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:59 -05:00
Davanum Srinivas
404bf4b04d 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:57 -05:00
Kubernetes Prow Robot
766a195b2a Merge pull request #136440 from BenTheElder/134-go1.24.12
release-1.34: upgrade go to 1.24.12 and decouple from kube-cross
2026-01-29 04:11:47 +05:30
Benjamin Elder
94938168a8 remove blank line between comments and entry 2026-01-22 13:05:53 -08:00
Benjamin Elder
a0f2539961 reorder kube-cross to be under go version and dedupe it from the go version 2026-01-22 13:05:38 -08:00
Benjamin Elder
cf76cd86a3 bump go to 1.24.12 2026-01-22 13:03:45 -08:00
Kubernetes Prow Robot
730ae95819 Merge pull request #135816 from mborsz/automated-cherry-pick-of-#135367-mborsz-release-1.34
Automated cherry pick of #135367: Fix apiserver_watch_events_sizes metric.
2026-01-16 11:23:12 +05:30
Kubernetes Prow Robot
31a3b4eb53 Merge pull request #136099 from jsafrane/automated-cherry-pick-of-#135629-upstream-release-1.34
Automated cherry pick of #135629: selinux: Fix the controller to ignore finished pods
2026-01-11 02:15:59 +05:30
Kubernetes Prow Robot
847bda5e72 Merge pull request #136123 from danwinship/automated-cherry-pick-of-#135631-origin-release-1.34
Automated cherry pick of #135631: Switch ipvs and winkernel back to more regular forced syncs
2026-01-10 07:13:39 +05:30
Dan Winship
b57a77635a Switch ipvs and winkernel back to more regular forced syncs 2026-01-08 22:24:52 -05:00
Kubernetes Prow Robot
a375772793 Merge pull request #136104 from atiratree/automated-cherry-pick-of-#135625-upstream-release-1.34
Automated cherry pick of #135625: mark QuotaMonitor as not running and invalidate monitors list
2026-01-09 08:19:39 +05:30
Filip Křepinský
e24e713ab7 mark QuotaMonitor as not running and invalidate monitors list
to prevent close of closed channel panic
2026-01-08 13:44:17 +01:00
Jan Safranek
0b27e410f0 Add unit test with CSIDriver.SELinuxMount=false
Add unit test with a volume plugin that does not support SELinux. That
simulates a CSi driver whose spec.SELinuxMount is empty or false.

This requires a little refactoring, each unit test now has a flag if it
runs with a volume plugin that supports SELinux.
2026-01-08 11:16:36 +01:00
Jan Safranek
2aeace05c4 Added e2e tests with disabled SELinux
Added few tests with a CSI driver that does not support SELinux and has it
disabled in its CSIDriver instance
2026-01-08 11:16:36 +01:00
Jan Safranek
e0600b8e39 Use only enqueuePod to add pods to the controller queue
enqueuePod already creates the right key for a pod, it's better to reuse it
than copy the code around.
2026-01-08 11:16:36 +01:00
Jan Safranek
3e55c95bb0 Fix policy of Pods with unknown SELinux label
Reset SELinuxChangePolicy of Pods that have no SELinux label set to
Recursive. Kubelet cannot mount with `-o context=<label>`, if the label is
not known.

This fixes the e2e test error revealed by the previous commit - it changed the
e2e test to check for events when no events are expected and it found a
warning about a Pod with no label, but MountOption policy.
2026-01-08 11:16:36 +01:00
Jan Safranek
ed74b5dbd8 selinux: add e2e test with a completed pod
Add a test that checks the SELinux controller does not report conflicts
with Succeeded pods.
2026-01-08 11:16:36 +01:00
Jan Safranek
4410a9edc7 Add new unit tests 2026-01-08 11:16:36 +01:00
Jan Safranek
1bf9b3d261 Rework unit tests to builder pattern 2026-01-08 11:16:36 +01:00
Jan Safranek
b25300bb21 selinux: Do not report conflits with finished pods
When a Pod reaches its final state (Succeeded or Failed), its volumes are
getting unmounted and therefore their SELinux mount option will not
conflict with any other pod.

Let the SELinux controller monitor "pod updated" events to see the pod is
finished
2026-01-08 11:16:36 +01:00
Jan Safranek
4265285c64 refactoring: use a common function to enqueue Pod
addPod and deletePod have the same implementation, merge them into
enqueuePod
2026-01-08 11:16:36 +01:00
Kubernetes Prow Robot
4be9cee74a Merge pull request #135363 from fusida/automated-cherry-pick-of-#133721-upstream-release-1.34
Automated cherry pick of #133721: fix panic for the crd with subresource but lose openAPIV3Schema
2026-01-08 12:11:39 +05:30
Kubernetes Prow Robot
67256ead86 Merge pull request #136071 from neolit123/automated-cherry-pick-of-#135776-origin-release-1.34
Automated cherry pick of #135776: kubeadm: always retry Patch() Node API calls
2026-01-08 07:07:38 +05:30
Lubomir I. Ivanov
b872b55ff7 kubeadm: always retry Patch() Node API calls
The PatchNodeOnce function has historically exited early
in scanarious when we Get a Node object, but the next Patch
API call on the same Node object fails. This can happen
in setups that are under a lot of resource pressure
or different network timeout scenarious.

Instead of exiting early and allow listing certain errors,
always retry on any Patch error. This aligns with the
general idea that kubeadm retries *all* API calls.
2026-01-07 14:27:46 +01:00
Kubernetes Prow Robot
72303801e2 Merge pull request #135811 from AkihiroSuda/fix-135210-1.34
[release-1.34] hack/lib/util.sh: support uutils' `date` command
2026-01-07 10:27:44 +05:30
Kubernetes Prow Robot
59ffdb45fe Merge pull request #135716 from p0lyn0mial/automated-cherry-pick-of-#135591-upstream-release-1.34
Automated cherry pick of #135591: downgrade reflector watchlist fallback log to V(4)
2026-01-07 10:27:37 +05:30
Kubernetes Prow Robot
7b0a085324 Merge pull request #135852 from neolit123/automated-cherry-pick-of-#135400-origin-release-1.34
Automated cherry pick of #135400: kubeadm: do not sort extraArgs alpha-numerically
2026-01-07 07:07:41 +05:30
Kubernetes Prow Robot
c84937eca9 Merge pull request #135740 from pohly/automated-cherry-pick-of-#135692-origin-release-1.34
Automated cherry pick of #135692: local-up-cluster.sh: support more recent containerd like 2.2
2026-01-06 07:26:37 +05:30
Lubomir I. Ivanov
ed5a8b6b66 kubeadm: do not sort extraArgs alpha-numerically
If the user has provided extraArgs with an order that has
significance (e.g. --service-account-issuer for kube-apiserver),
kubeadm will correctly override any base args, but will end up
sorting the entire resulting list, which is not desired.

Instead, only sort the base arguments and preserve the order
of overrides provided by the user.
2025-12-19 17:43:40 +01:00
Maciej Borsz
af1b6ed22d Fix apiserver_watch_events_sizes metric.
This metric got broken by caching efforts -- the value is counted only once.
2025-12-18 09:48:06 +00:00
Akihiro Suda
f3ac2c4d7a hack/lib/util.sh: support uutils' date command
`make` was printing the following warning on Ubuntu 25.10,
which switched away from GNU coreutils to uutils:

```
!!! [1107 12:46:24] Failed to find GNU date as date or gdate. If you are on Mac: brew install coreutils.
<GOPATH>/src/k8s.io/kubernetes/hack/lib/version.sh: line 166: DATE: unbound variable
```

Fix issue 135210

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 0c0bc0d533f669fa4acc4fe5b33c75864262cf64)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-12-18 18:02:31 +09:00
Patrick Ohly
26cf4979fa local-up-cluster.sh: support more recent containerd like 2.2
The kubekins image got updated from containerd 1.7 to 2.2, which broke
local-up-cluster.sh in the CI because more recent containerd uses single
quotation marks around strings instead of double quotation marks as before. The
search/replaced with sed no longer matched, causing containerd to fail mounting
overlayfs on the default /var/lib/containerd. We have to use the emptyDir host
mount under /docker-graph.

The fix is to relax the search term slightly so that it accepts both kinds of
quotation marks.
2025-12-13 10:37:43 +01:00
Lukasz Szaszkiewicz
4691935a3e downgrade reflector watchlist fallback log to V(4) 2025-12-11 15:52:57 +01:00
Kubernetes Release Robot
17044946fa Update CHANGELOG/CHANGELOG-1.34.md for v1.34.3 2025-12-09 15:23:49 +00:00
Kubernetes Release Robot
df11db1c0f Release commit for Kubernetes v1.34.3 v1.34.3 2025-12-09 14:59:13 +00:00
Kubernetes Prow Robot
7c5d1fcf8e Merge pull request #135064 from eltrufas/automated-cherry-pick-of-#133599-upstream-release-1.34
Automated cherry pick of #133599: Mark API server errors as transient in csi raw block driver
2025-12-05 09:00:56 -08:00
Kubernetes Prow Robot
7124d34589 Merge pull request #135482 from borovetsav/fix-kubeadm-control-plane-join-1-34
[Manual bugfix]: unhide the etcd-join phase for v1.34
2025-12-05 06:24:56 -08:00
Kubernetes Prow Robot
071d4118dc Merge pull request #135612 from cpanato/update-rel-134
[release-1.34][go] Bump dependencies, images and versions used to Go 1.24.11 and distroless iptables
2025-12-05 04:48:56 -08:00
Carlos Panato
3012c0060e Bump dependencies, images and versions used to Go 1.24.11 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-12-05 11:44:04 +01:00
Kubernetes Prow Robot
2f17c6c397 Merge pull request #135592 from serathius/automated-cherry-pick-of-#135580-upstream-release-1.34
Automated cherry pick of #135580 - Embed proper interface in TransformingStore
2025-12-04 17:44:55 -08:00
Kubernetes Prow Robot
58da6ff3c8 Merge pull request #135207 from SergeyKanzhelev/automated-cherry-pick-of-#135153-upstream-release-1.34
Automated cherry pick of #135153: mark device manager as haelthy before it started for the first time
2025-12-04 08:26:58 -08:00
Jordan Liggitt
9043cb4f1c Use transformer in consistency checker 2025-12-04 16:18:12 +01:00
Valerian Roche
86c4e09a78 Add unit tests for Data Consistency Detector 2025-12-04 16:18:12 +01:00
Valerian Roche
be4a4f5c20 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 16:17:19 +01:00
Kubernetes Prow Robot
7d22d65c3d Merge pull request #135343 from michaelasp/automated-cherry-pick-of-#135327-upstream-release-1.34
Automated cherry pick of #135327: Fix alpha API warnings for patch version differences
2025-12-04 03:56:57 -08:00
Kubernetes Prow Robot
38f3932f7f Merge pull request #135576 from BenTheElder/fix-rsync-1.34
fix rsync IP address detection for v1.34
2025-12-04 00:50:22 -08:00