071c25482a
Skip expensive CI for Markdown-only PRs ( #1052 )
...
* ci: skip expensive checks for markdown-only PRs
Signed-off-by: nightcityblade <nightcityblade@gmail.com >
* ci: skip docs directory in expensive checks
---------
Signed-off-by: nightcityblade <nightcityblade@gmail.com >
Co-authored-by: nightcityblade <nightcityblade@gmail.com >
2026-07-29 12:33:58 +02:00
ee8c16bdd2
Update GitHub Actions ( #1065 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-07-23 12:32:30 +02:00
5ef3f38571
Update GitHub Actions ( #1054 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-07-22 10:33:40 +02:00
Enrico Candino and GitHub
3f25eabe38
feat: Enhance GitHub Actions workflows and add YAML linting ( #1020 )
...
- Updated action descriptions for clarity in provision-k3s-vm-workers.
- Refactored steps in provision-k3s-vm-workers for improved readability.
- Adjusted permissions formatting in multiple workflows for consistency.
- Added YAML linting step in validate workflow to ensure YAML file quality.
- Introduced .yamllint configuration file for GitHub Actions YAML files.
- Enhanced Makefile to include a target for linting YAML files.
2026-07-14 16:51:08 +02:00
Enrico Candino and GitHub
3d0438edc9
Update k8s dependencies to v1.36 (main) ( #979 )
...
* Update k3s version in test suites to v1.36.2-k3s1
- Updated the k3sVersion and k3sOldVersion constants in both cli and e2e test suites to reflect the new version v1.36.2-k3s1 and the previous version v1.36.0-k3s1.
* updated README.md
2026-07-08 15:58:06 +02:00
39cc69f3e3
Added HCP (Hosted Control Plane) mode ( #876 )
...
* Add HCP (Hosted Control Plane) support
Introduce hosted control plane mode for k3k virtual clusters, including
API types, controller logic, server endpoint handling, CLI flags,
CRD updates, kubeconfig generation, and examples.
Co-Authored-By: RuFlo <ruv@ruv.net >
* removed hcpRegitration command
added HCP conformance tests
warning for hcp
fix multi-VM HCP conformance test networking
Both QEMU workers booted with `-net user` and ended up registering the
same InternalIP (10.0.2.15) because each VM gets its own isolated NAT
slirp. Flannel propagated this to `public-ip` on both nodes, so VXLAN
could not tunnel between workers and any cross-node pod traffic broke
(89 failed / 335 passed of 424 conformance specs).
Replace user-mode networking with a Linux bridge (k3kbr0,
192.168.100.0/24) and one TAP device per VM, so the two workers share
an L2 segment with unique routable IPs. NAT outbound from the bridge
keeps internet access working for image pulls.
Also set unique hostnames via cloud-init (worker-1/worker-2) and drop
the `--node-name` flag from INSTALL_K3S_EXEC, since k3s now picks the
correct node name from the OS hostname on its own.
Bump hydrophone back to `--parallel 4` to match the single-VM job
(parallelism was reduced earlier when the failure was thought to be
resource-related).
added HCP print command
updated crds
adding e2e tests
Refactor selectNonLoopbackSAN function to accept SANs directly and update related logic in ensureHCPRegistration
* Update agent flag validation and enhance ingress host check with a warning log
Refactor descriptions for cluster provisioning mode and role in CRDs and documentation
Refactor logging in ServerURL function to use controller-runtime logger
Rename selectNonLoopbackSAN to findNonLoopbackSAN for clarity and update references
Refactor ServerURL function and related code to remove unused parameters and improve clarity
Remove unused imports from kubeconfig.go to improve code clarity
* suggested changes
* fix comment
* fix test
---------
Co-authored-by: jpgouin <jeanphilippe.gouin@suse.com >
Co-authored-by: RuFlo <ruv@ruv.net >
2026-07-07 14:12:19 +02:00
7879a7679d
Update ginkgo and gomega (main) ( #956 )
...
* Update ginkgo and gomega
* Update Ginkgo to version 2.32.0 in workflows and Makefile
---------
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
Co-authored-by: Enrico Candino <enrico.candino@suse.com >
2026-07-02 12:34:00 +02:00
Enrico Candino and GitHub
ed3e901229
Add K3K prefix to k3kcli env vars, align cli test, add failCount ( #962 )
...
* align test-cli
* test context
* increase timeout
* Enhance cluster readiness check with failure count limit
Add prefix K3K to env vars
2026-07-01 11:14:37 +02:00
d75c0346da
Update ginkgo and gomega (main) ( #922 )
...
* Update ginkgo and gomega
* Update Ginkgo version to v2.31.0 in workflows and Makefile
---------
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
Co-authored-by: Enrico Candino <enrico.candino@suse.com >
2026-06-25 19:44:06 +02:00
5dcc97736f
Update actions/setup-go digest to 924ae3a ( #934 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-06-25 17:47:19 +02:00
22b4e1d37a
Update codecov/codecov-action action to v7 ( #936 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-06-25 10:56:53 +02:00
667946e898
Update actions/checkout action to v7 ( #940 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-06-25 10:47:40 +02:00
8e39493dac
Update GitHub Actions ( #865 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-06-10 11:10:56 +02:00
51b40f2a9c
Update GitHub Actions ( #824 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-05-21 00:13:04 +02:00
4ace86b5ec
chore(deps): update actions/upload-artifact digest to 043fb46 ( #776 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-04-15 11:34:14 +02:00
Enrico Candino and GitHub
ba819618e3
Cleanup tests and small fixes ( #741 )
...
* Added missing k3k pod logs export
* fix env variables
* bump codecov action to v6 (node 24 support)
* remove azure/setup-helm dependency, fixed k3s image
* fix shasum
* fix helm check
* added kubernetes version matrix
* requested changes, and small fixes
2026-04-04 02:50:03 +02:00
20b42b0dcf
chore(deps): update github actions ( #731 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-04-03 10:55:24 +02:00
Enrico Candino and GitHub
93e8ab6d8f
update K3S_HOST_VERSION and use variable in cli tests ( #734 )
2026-03-31 11:12:25 +02:00
Jonathan Crowther and GitHub
8403214d58
Pin installed versions to specific hashes ( #730 )
2026-03-27 11:16:39 -04:00
f4cd57b9f5
chore(deps): update github actions ( #711 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-03-23 14:54:13 +01:00
0dbd930292
chore(deps): update github actions ( #653 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-03-23 13:05:15 +01:00
511be5aa4e
Pin dependencies ( #628 )
...
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2026-01-22 15:24:57 +01:00
a3a4c931a0
Add initial Renovate configuration ( #621 )
...
* Add initial Renovate configuration
* add permission
* fix multiple runs
---------
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
Co-authored-by: Enrico Candino <enrico.candino@suse.com >
2026-01-21 15:04:51 +01:00
Peter Matseykanets and GitHub
20305e03b7
Add a dedicated Validate GitHub Actions workflow ( #614 )
2026-01-19 10:00:12 -05:00
Enrico Candino and GitHub
c16eae99c7
Added AsciiDoc k3kcli automation ( #597 )
...
* adding scripts for asciidoc cli generation
* fix small typos to align to existing docs
* added pandoc
* pandoc check
2026-01-07 11:16:40 +01:00
Hussein Galal and GitHub
89dc352bea
Scale up/down tests for virtual and shared mode ( #508 )
...
* Scale up/down tests for virtual and shared mode
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* defer cleanup and more fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* add labels to e2e tests and divide the workload
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* add labels to e2e tests and divide the workload
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* add validate job to e2e test
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix label filters for e2e tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix makefile
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* use constants for e2e tests labels
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix typo
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix labels
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-10-15 17:01:14 +03:00
Hussein Galal and GitHub
a0fd472841
Use K3S host cluster for E2E tests ( #492 )
...
* Add kubeconfig to e2e_tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* add E2E_KUBECONFIG env variable
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix yaml permissions for kubeconfig
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix image name and use ttl.sh
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* add uuidgen result to a file
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* add hostIP
* Add k3s version to e2e test
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* remove comment
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* remove virtual mode tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix failed test
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add KUBECONFIG env variable to the make install
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* add k3kcli to github_path
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Use docker installation for testing the cli
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* typo
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix test cli
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* lint
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* typo
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-10-08 15:39:35 +03:00
Enrico Candino and GitHub
1550c6b45a
Add k3k controller coverage data ( #452 )
...
* added k3k controller coverage data
* cleanup
2025-09-03 11:37:56 +02:00
Enrico Candino and GitHub
5eb1d2a5bb
Adding some tests for k3kcli ( #417 )
...
* adding some cli tests
* added coverage and tests
* fix lint and cli tests
* fix defer
* some more cli tests
2025-07-23 11:03:41 +02:00
Enrico Candino and GitHub
2047a600ed
Migrate golangci-lint to v2 ( #424 )
...
* golangci-lint upgrade
* fix lint
2025-07-22 10:10:26 +02:00
Enrico Candino and GitHub
a0af20f20f
codecov ( #418 )
2025-07-18 11:50:57 +02:00
Enrico Candino and GitHub
2ab71df139
Add Conditions and current status to Cluster ( #408 )
...
* Added Cluster Conditions
* added e2e tests
* fix lint
* cli polling
* update tests
2025-07-14 15:53:37 +02:00
Enrico Candino and GitHub
753b31b52a
Adding configurable maxConcurrentReconcilers and small CRD cleanup ( #410 )
...
* removed Persistence from Status, fixed default for StorageSize and StorageDefault
* added configurable maxConcurrentReconciles
* fix concurrent issues
* add validate as prereq for tests
2025-07-10 14:46:33 +02:00
Enrico Candino and GitHub
6a22f6f704
fix build-crds, bump Go to 1.24.2, bump golangci-lint ( #344 )
2025-05-06 17:24:35 +02:00
Enrico Candino and GitHub
127b5fc848
Remove dapper ( #254 )
...
* wip drop dapper
* added tests, validate
* fix kubebuilder assets
* debug
* fix maybe
* export global
* export global 2
* fix goreleaser
* dev doc section improved
* crd and docs
* drop dapper
* drop unused tmpl
* added help
* typos, and added `build-crds` target to default
2025-02-18 11:59:20 +01:00
Hussein Galal and GitHub
fa553d25d4
Default to dynamic persistence and fix HA restarts ( #250 )
...
* Default to dynamic persistence and fix HA restarts
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-02-14 14:26:10 +02:00
Enrico Candino and GitHub
3f49593f96
Add Cluster creation test ( #192 )
...
* added k3kcli to path
* test create cluster
* updated ptr
* added cluster creation test
2025-01-21 17:53:42 +01:00
Enrico Candino and GitHub
0b3a5f250e
Added golangci-lint action ( #197 )
...
* added golangci-lint action
* linters
* cleanup linters
* fix error, increase timeout
* removed unnecessary call to Stringer
2025-01-21 11:30:57 +01:00
Enrico Candino and GitHub
f9b3d62413
bump go1.23 ( #198 )
2025-01-21 10:50:23 +01:00
Enrico Candino and GitHub
d4368da9a0
E2E tests scaffolding ( #189 )
...
* testcontainers
add build script
dropped namespace from chart
upload logs
removed old tests
* show go.mod diffs
2025-01-16 20:40:53 +01:00
Enrico Candino and GitHub
4fdce5b1aa
Test release workflows ( #173 )
...
* goreleaser action
* removed old release
* fix gomega version in tests
* updated build workflow
* fix for empty var
2025-01-09 10:10:53 +01:00
Enrico Candino and GitHub
9fc4a57fc2
Fix go.mod ( #171 )
...
* check go mod
* fix go.mod
2025-01-08 10:02:23 +01:00
Enrico Candino and GitHub
a235b85362
Bump testing dependencies ( #155 )
...
* fixed testing deps, added doc
* added manual dispatch
2024-12-04 20:31:33 +01:00
Enrico Candino and GitHub
6d716e43b2
Bump deps and enable tests on PRs ( #152 )
...
* enable tests on PRs
* bump deps
2024-11-28 20:13:57 +01:00
Enrico Candino and GitHub
37573d36a4
Added envtest integration tests for ClusterSet ( #143 )
...
* init tests
* added clusterset tests
* added github action
* updated Dapper with envtest bins
2024-11-11 18:13:20 +02:00