Commit Graph

3479 Commits (5e851c8d04c9642cfbcfb6fa8ce74718e97ef6d4)

Author SHA1 Message Date
Brad Davidson 5e851c8d04 Fix windows kubelet flags
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Aaron Dewes 891be5751e fix: Use proper key when signing kubelet certificate
I assume this was a mistake when copying and the kubelet key should have been used here.

This bug was introduced in #11471.

Signed-off-by: Aaron Dewes <aaron@nirvati.org>
(cherry picked from commit 147a3c0daf)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Derek Nola 7840cdb1a5 Address slow arm docker node startup
Signed-off-by: Derek Nola <derek.nola@suse.com>
(cherry picked from commit b5704e2623)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Derek Nola c56f44133f chore: bump kine to v0.13.13
Signed-off-by: Derek Nola <derek.nola@suse.com>
(cherry picked from commit e4c8ae4248)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
github-actions[bot] 8fb87afd71 Bump Klipper Helm and Helm Controller version (#12026)
* chore: Bump Klipper Helm and Helm Controller version

Made with ❤️️ by updatecli

* chore: Bump Klipper Helm and Helm Controller version

Made with ❤️️ by updatecli

* Fix build

Signed-off-by: Derek Nola <derek.nola@suse.com>

---------

Signed-off-by: Derek Nola <derek.nola@suse.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Derek Nola <derek.nola@suse.com>
(cherry picked from commit 2fdc6fab07)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 4258f3c545 Fix windows socket prefix
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit f5b0d7884f)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 84cb3c21ac Move Windows test out of Install Script workflow
Placing this in the install script test, which only runs when specific files are changed, was preventing it from being run on code changes.

In addition to moving this into the integration workflow, fix codecov for Windows and upload data after running a test pod.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit cd4be0b8c1)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Derek Nola deeef5cecf Consolidate build-k3s GHA workflow for OS and ARCH (#12080)
Signed-off-by: Derek Nola <derek.nola@suse.com>
(cherry picked from commit 7c552f89c8)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 3f14895e5a Silence vagrant progress output
Add --no-tty flag to all `vagrant up` commands to silence the printing of box loading progress

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 08c6c7423b)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 98f4f5319d Add ReusePort/ReuseAddr flags to etcd config
Addresses flakes in etcd CI due to the port still being in TIME_WAIT after the server is shut down between tests

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 9deef77eef)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 203f2e5edd Bump to traefik/v2.11.22, coredns/v1.12.1
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 7cdf0fa688)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 877ba4d8c3 Fix flakey etcd startup tests
Increase etcd shutdown delay to avoid "bind: address already in use" errors seen in CI. Also uses test TmpDir to ensure dir is cleaned up between tests.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson ca07af0eda Add tests for control-plane component arg generation
Use mocked executor to ensure the correct args are being passed to components

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1ba19856de)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 1c3ea44dc7 Fix issue caused by default authorization-mode apiserver arg
Move arg-parsing helper functions into util, and use them to see if the user has set an authorization-config flag - and do not set authorization-mode if so.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit ee036f7bc9)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson d96dabafcc Rework mock executor using gomock for call validation
Generate the mock executor with mockgen and convert existing uses of the mock executor to set it up properly.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 0eeac6a622)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson ad1ff8c194 Move etcd ready channel into executor
This eliminates the final channel that was being passed around in an internal struct. The ETCD management code passes in a func that can be polled until etcd is ready; the executor is responsible for polling this after etcd is started and closing the etcd ready channel at the correct time.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit d45006be66)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 7fcdc6ab7c Fix etcd tests to use mock executor
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 72bbd676f1)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 942e851ebd Move container runtime ready channel into executor
Move the container runtime ready channel into the executor interface, instead of passing it awkwardly between server and agent config structs

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit a8bc412422)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 1d8e1bcde7 Move apiserver ready wait into common channel
Splits server startup into prepare/start phases. Server's agent is now
started after server is prepared, but before it is started. This allows
us to properly bootstrap the executor before starting server components,
and use the executor to provide a shared channel to wait on apiserver
readiness.

This allows us to replace four separate callers of WaitForAPIServerReady
with reads from a common ready channel.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 529e748ac7)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson ee8f5aa672 Increase log output while waiting for apiserver ready
Increases log verbosity but decreases polling frequency to avoid
spamming the console. It usually takes a couple seconds for the
apiserver to come up anyway.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 2c133692b2)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
Brad Davidson 2e1bb96974 Add context to agent token validation error
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit c11c06cad4)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-04-11 16:58:53 -07:00
manuelbuil 66dbb8027b Add error in certificate check
Signed-off-by: manuelbuil <mbuil@suse.com>
2025-04-11 13:37:45 -07:00
Derek Nola de24422e65 Migrate E2E SecretsEncryption to Docker test
Remove secrets encryption E2E from Drone

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-10 16:33:05 -04:00
Derek Nola 652b6cf153 Don't run snapshotrestore on flaky arm64 runners
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-10 16:33:05 -04:00
Derek Nola 8857e72b4a Migrate E2E autoimport to Docker test
Simplify DockerNode structs
Remove autoimport from E2E
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-10 16:33:05 -04:00
Derek Nola 49a5481e6c Remove unused docker tests
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-10 16:33:05 -04:00
Derek Nola c652b1b26f Migrate hardened docker test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-10 16:33:05 -04:00
Derek Nola 40330ba927 Migrate E2E Token test into a Docker Token test
Remove E2E token test

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-10 16:33:05 -04:00
Derek Nola d706435a04
Cleanup anonymous and named volumes for docker tests (#12078)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-04-08 18:28:07 -04:00
Derek Nola 1f20bd67e6 Fix flaky rootless E2E test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-27 09:27:52 -07:00
Derek Nola 1b9f337392 Align docker and e2e variable spelling
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-27 09:27:52 -07:00
Derek Nola b942603d9a Only bump trivy on the minor release (#11773)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-27 09:27:52 -07:00
Derek Nola f35f133c68 Reduce cache thrashing on E2E vagrant boxes. Don't cache for windows unit tests. (#11769)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-27 09:27:52 -07:00
Derek Nola 35a4723918
[Release-1.29] Fix upgrade test, docker test cleanup (#11997)
* Fix upgrade test container version

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Force docker test cleanup in CI

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Bump skew test deployment time

Signed-off-by: Derek Nola <derek.nola@suse.com>

---------

Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-21 15:31:31 -05:00
Brooks Newberry b0da67824c
fix skew test container version (#11988)
Signed-off-by: Brooks Newberry <brooks@newberry.com>
2025-03-19 23:41:52 -07:00
Brooks Newberry 5bc2f0ce15
Update to v1.29.15 (#11957)
Signed-off-by: Brooks Newberry <brooks@newberry.com>
2025-03-12 13:06:51 -07:00
Brad Davidson cd3e17f2f7 Fix syncing empty list of apiserver addresses during initial startup
Also add more debug logging to the sync process.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 781640ecea)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-12 00:26:17 -07:00
Derek Nola 288efc52b8
Merge pull request #11929 from dereknola/bump_klipper_lb_1.29
[Release-1.29] Bump klipper-lb to v0.4.13
2025-03-10 15:17:30 -07:00
Brad Davidson 4cbe00913b
Merge pull request #11931 from brandond/2025-03-backports_release-1.29
[release-1.29] Backports for 2025-03
2025-03-10 13:43:00 -07:00
Derek Nola 946427bd24
Fix flaky rootless E2E test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-10 18:36:27 +00:00
Brad Davidson 9b959aeb8a
Bump etcd to v3.5.19
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 0a47df6f60)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:35:19 +00:00
Brad Davidson f72757bace
Add periodic background snapshot reconcile
Interval is configurable with new etcd-snapshot-reconcile-interval flag

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit d694dd1db9)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:35:08 +00:00
Brad Davidson 4fde818520
Avoid use of github.com/pkg/errors functions that capture stack
We are not making use of the stack traces that these functions capture, so we should avoid using them as unnecessary overhead.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit bed1f66880)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:35:06 +00:00
Derek Nola 2fdfa14d2c
Bump klipper-lb image (#11898)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-03-10 11:32:41 -07:00
Brad Davidson 675c355b81
Bump to containerd v2.7.26/runc v1.2.5
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 66d0f1604a)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:28:10 +00:00
Anders Larsson 2c0709322d
Add netfilter statistic module to check-config
Signed-off-by: Anders Larsson <anders.git@larsson.xyz>
(cherry picked from commit 8aa543eb87)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:26:46 +00:00
Brad Davidson fb75ee63b3
Fix panic when secret-encrypt status is checked before runtime core is ready
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit e7b52cd63d)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:26:45 +00:00
Brad Davidson 0db300b1d7
Use etcd proxy to bootstrap control-plane-only nodes, if possible
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit f940368747)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:26:45 +00:00
Brad Davidson ec08e81d20
Use existing server-CA and hash if available
Also wraps errors along the cluster prepare path to improve tracability.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 244bfd0c35)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:26:45 +00:00
Brad Davidson 650dea0516
Serve HTTP bootstrap data from datastore before disk
Fixes issue where CA rotation would fail on servers with join URL set due to using old data from disk on other server

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 53fcadc028)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-10 18:26:44 +00:00