Skip to content

[release-1.35] Backports for 2026-11 - #15067

Merged
brandond merged 18 commits into
k3s-io:release-1.35from
brandond:2026-11-backports_release-1.35
Nov 25, 2026
Merged

brandond merged 18 commits into
k3s-io:release-1.35from
brandond:2026-11-backports_release-1.35

Conversation

@brandond

@brandond brandond commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Proposed Changes

Backports:

Types of Changes

Backports

Verification

See linked issues

Testing

Linked Issues

User-Facing Change

* Make immutable mtime accept 1st Unix second
* Set IdleTimeout on the supervisor http server
* Close tcpproxy backend connection when client connection is closed
* Fix airgap tarballs re-imported on every start with .cache.json
* Remove temporary etcd datastore copy when opening it fails
* Normalize pause image to ensure pinning
* Allow configuring flannel vxlan vni and port via env var
* Bump Spegel to v0.8.1
* Bump kine to v0.16.6
* Disable LB+tunnel on agentless servers with local apiserver
* update busybox image to 1.38.0
* Avoid panic in ArgValue when a matching arg has no value
* Fix node matching for local snapshots in the legacy configmap
* Bump runc to v1.5.3
* Bump kine to v0.16.7
* Prune the image import cache by the files that exist

Further Comments

daimond113 and others added 18 commits November 25, 2026 20:50
Signed-off-by: daimond113 <contact@daimond113.com>
(cherry picked from commit 6999233)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
tcpproxy only calls Close() if the connection can be unwrapped to
`*net.TCPConn`, for others implementations of `net.Conn` it calls
`CloseWrite/CloseRead` if present.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 56959d5)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
The image import cache stores each file's mtime as a metav1.Time, which
is serialized with second precision. Since k3s-io#14288 the cached mtime is
compared with the file's full-precision mtime on its own, so any file
with a sub-second mtime looks newer than its cache entry and is
re-imported on every start. Truncate the file's mtime to seconds before
comparing.

Fixes k3s-io#14911

Signed-off-by: Adam Gelwarg <adam@gelwarg.net>
(cherry picked from commit 36f32b2)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
any change in mtime (not just newer).

Signed-off-by: Adam Gelwarg <adam@gelwarg.net>
(cherry picked from commit c4e4476)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Brad Davidson <brad@oatmail.org>
(cherry picked from commit 003b699)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Brad Davidson <brad@oatmail.org>
(cherry picked from commit 0cfab82)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
NewTemporaryStore leaves its database copy behind when copying or
opening fails. No store reaches the caller, so Close cannot remove it.

Remove the temporary directory on both error paths. Check in the
existing table that no copy remains after each expected error.

Signed-off-by: spicysharkco <321699413+spicysharkco@users.noreply.github.com>
(cherry picked from commit 70f8998)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Fixes issue where pause image was not pinned because it did not match the normalized name that ends up getting pulled.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit b5ca5b2)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Adds flannel env var pass through from server using same path as flannel-backend, so that agents use the same VNI and Port as the server.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit e108a0d)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit f5cba99)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 3ddfb9f)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 51d3b70)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Michael Moll <kvedulv@kvedulv.de>
(cherry picked from commit c55a7df)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
ArgValue split each arg on the first '=' but always read splitArg[1],
which panics with an index out of range when a matching flag is passed
without a value (for example --kube-apiserver-arg=feature-gates). Guard
the index the same way GetArgs already does and return an empty value in
that case.

Signed-off-by: Amal Saidov <amalsaidov@users.noreply.github.com>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit f84cba4)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
reconcile trimmed the trailing timestamp from local snapshot keys with
strings.TrimRight(s, "-012345678"). The cutset has no 9, so trimming
stops at the first 9 in the timestamp and the node name no longer
matches; the entry is then deleted as belonging to a missing node. The
cutset also eats trailing digits of node names such as server-1.
Cut at the last dash instead, which removes exactly the timestamp.

Signed-off-by: farisbasha <farisbashatm@gmail.com>
(cherry picked from commit 80bc451)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit a4ec24e)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Ref: https://github.com/k3s-io/kine/releases/tag/v0.17.6
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 638c302)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pruneCache drops every entry not yet seen since the start. importAndWatchImages
calls it once the workqueue is empty, which is also the case while the worker is
still processing the last item, so that item's entry was dropped and it was
imported again at the next start.

The worker now holds a read lock on filesCache while it processes an item, and
pruneCache takes the write lock, so the prune waits for the item in flight.

Signed-off-by: Anders Ingemann <anders@ingemann.de>
(cherry picked from commit 9b575d9)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond
brandond requested a review from a team as a code owner November 25, 2026 20:58
@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 35.03185% with 102 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.83%. Comparing base (afc55e9) to head (057aae3).

Files with missing lines Patch % Lines
pkg/util/logger/filter.go 0.00% 46 Missing ⚠️
pkg/spegel/spegel.go 0.00% 26 Missing ⚠️
pkg/spegel/store.go 0.00% 9 Missing ⚠️
pkg/agent/containerd/watcher.go 66.66% 4 Missing ⚠️
pkg/agent/loadbalancer/servers.go 0.00% 4 Missing ⚠️
pkg/agent/config/config.go 50.00% 2 Missing and 1 partial ⚠️
pkg/agent/run.go 33.33% 1 Missing and 1 partial ⚠️
pkg/cluster/bootstrap.go 0.00% 2 Missing ⚠️
pkg/etcd/snapshot_controller.go 0.00% 2 Missing ⚠️
pkg/util/logger/logger.go 33.33% 1 Missing and 1 partial ⚠️
... and 2 more
Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.35   #15067      +/-   ##
================================================
- Coverage         52.11%   51.83%   -0.29%     
================================================
  Files               197      200       +3     
  Lines             16017    16106      +89     
================================================
+ Hits               8347     8348       +1     
- Misses             6357     6437      +80     
- Partials           1313     1321       +8     
Flag Coverage Δ
e2etests 41.59% <26.97%> (-0.15%) ⬇️
inttests 39.89% <27.38%> (-0.10%) ⬇️
unittests 26.91% <19.74%> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brandond
brandond merged commit 1d2e1e2 into k3s-io:release-1.35 Nov 25, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.