Enrico Candino
004e177ac1
Bump kubernetes dependencies (v1.33) ( #647 )
...
* bump kubernetes to v0.33.7
* updated kuberneets api versions
* bump tests
* fix k3s version
* fix test
* centralize k8s version
* remove focus
* revert GetPodCondition, GetContainerStatus and pin of k8s.io/controller-manager
2026-01-27 22:28:56 +01:00
Enrico Candino
0164c785ab
Show correct allocatable resources when a Policy is applied ( #638 )
...
* wip
* wip
* wip
* fix lint and tests
* fixed bugs for missing resources
* cleanup and refactor
* removed coreClient from configureNode
* added comments to distribute algorithm
2026-01-27 15:56:37 +01:00
Hussein Galal
c1b7da4c72
SecretMounts feature and private registries ( #570 )
...
* Add SecretMounts field
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2026-01-26 21:47:40 +02:00
Hussein Galal
fcc7191ab3
CLI cluster update ( #595 )
...
* CLI cluster update
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2026-01-20 14:00:24 +02:00
Enrico Candino
5f42eafd2a
Dev doc update ( #611 )
...
* update development.md
* fix tests
* fix cli test
2026-01-16 14:56:43 +01:00
Hussein Galal
a871917aec
Refactor startup command to wait for node IP changes ( #598 )
...
* Patch node ip when server pod restarts
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Refactor startup command and adding safe mode
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add date/time logging to the startup script
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2026-01-09 16:29:47 +02:00
Enrico Candino
fc6bcedc5f
fix for missing label update in creation, added tests ( #592 )
2025-12-16 11:34:50 +01:00
Enrico Candino
c9bb1bcf46
Fixed CreatePod and UpdatePod in Virtual Kubelet for Downward API ( #573 )
...
* wip
* fix lint
* ephemerals container
* remove unused
* add retry
* volumes refactor
* added configmap and secret keyRef translation
* set debug logger to virtual kubelet logger
* added tests
* fix lint, removed unused func
* added test file locally
2025-12-10 13:47:34 +01:00
Enrico Candino
e385ceb66f
Fixed missing Kubernetes host version when specified ( #585 )
...
* fix for missing host version
* added test
* fix test
* fix test
2025-12-03 09:21:27 +01:00
Enrico Candino
521ff17ef6
Added test for SubPathExpr ( #569 )
...
* small fixes
* added test for subpathexpr
* removed old comment
2025-11-21 16:28:59 +01:00
Enrico Candino
8760afd5bc
Added --namespace flag to k3kcli policy create ( #564 )
...
* added --namespace flag to policy create to actually bind the new policy to existing namespaces
* fix lint
* fix tests
* added overwrite flag
* updated cli docs
* fix tests 2
* moved double quotes to single quote
* fix test
2025-11-14 21:45:28 +01:00
Enrico Candino
2e6de51dab
Improve tests resiliency ( #539 )
...
* fix missing namespaces cleanup
* fix conflict namespace
* fix PVC already created error, patch for existing volume, and check with hardcoded k3k name
* removed useless test
* fix for dump covdata from external pod
* keep namespaces flag
* fix for multi-node clusters
* fix for hanging pod in isolated namespace
2025-10-31 21:51:37 +01:00
Enrico Candino
af9e1d6ca7
Cleanup orphaned resources after Cluster deletion ( #540 )
...
* adding controller reference for garbage collection, delete API lease
* added test
* fix lint
2025-10-31 15:25:38 +01:00
Enrico Candino
075d72df5d
Cleanup of customCAs spec ( #527 )
...
* cleanup spec from customCAs when omitted
* add enabled default for customCAs
2025-10-23 22:11:44 +02:00
Enrico Candino
514fdf6b86
Fix for flaky test ( #523 )
...
* fix for flaky test
* fix lint
* check ContainersReady condition
2025-10-21 18:19:36 +02:00
Hussein Galal
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
Enrico Candino
7644406eeb
Fix for flaky test ( #509 )
...
* fix for flaky test and fix for PVC creation
* fix lint
2025-10-15 11:31:45 +02:00
Enrico Candino
594c2571c3
promoted v1alpha1 resources to v1beta1 ( #505 )
2025-10-13 17:24:56 +02:00
Hussein Galal
12971f55a6
Add k8s version upgrade test ( #503 )
...
* Add k8s version upgrade test
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* lint
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* remove unused functions
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-10-13 17:14:25 +03:00
Hussein Galal
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
9f265c73d9
Fix for HA server deletion ( #493 )
...
* wip
* wip
* wip
* removed todo
2025-10-08 13:23:15 +02:00
Enrico Candino
5c95ca3dfa
Fix for pod eviction in host cluster ( #484 )
...
* update statefulset controller
* fix for single pod
* adding pod controller
* added test
* removed comment
* merged service controller
* revert statefulset
* added test
* added common owner filter
2025-10-03 16:22:54 +02:00
Hussein Galal
80037e815f
Adding upgrade path tests ( #481 )
...
* Adding upgrade path tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
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 >
* Remove update label
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-10-02 14:53:08 +03:00
Enrico Candino
7585611792
Rename PodController to StatefulSetController ( #482 )
...
* renamed pod.go
* update statefulset controller
* fix for single pod
* added test, revert finalizer
* wip ha deletion
* revert logic
* remove focus
2025-10-01 17:06:24 +02:00
Enrico Candino
01589bb359
splitting tests ( #461 )
2025-09-23 12:07:49 +02:00
Hussein Galal
72eb819216
Add imagepullsecrets to controller, server, and agents ( #455 )
...
* Add imagepullsecrets to controller, server, and agents
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix tests
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 >
* fxing tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add agent section to helm chart values
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix charts values
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fixing chart and refactoring cluster config
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* default lists to the values of imagepullsecrets
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* more fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix version image function and add unit tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* simplify arguments and remove registry from the code
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-09-17 11:29:01 +03:00
Enrico Candino
1550c6b45a
Add k3k controller coverage data ( #452 )
...
* added k3k controller coverage data
* cleanup
2025-09-03 11:37:56 +02:00
Hussein Galal
8d89c7d133
Fix service port for generated kubeconfig secret ( #433 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-08-18 09:17:30 +03:00
Enrico Candino
084701fcd9
Migrate from urfave/cli to cobra ( #426 )
...
* wip
* env var fix
* cluster create
* cluster create and delete
* cluster list
* cluster cmd
* kubeconfig
* policy create
* policy delete and list, and added root commands
* removed urfavecli from k3kcli
* fix policy command
* k3k-kubelet to cobra
* updated docs
* updated go.mod
* updated test
* added deletion
* added cleanup and flake attempts
* wip bind env
* simplified config
2025-07-24 16:49:40 +02:00
Enrico Candino
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
98d17cdb50
Added new golangci-lint formatters ( #425 )
...
* add gci formatter
* gofmt and gofumpt
* rewrite rule
* added make fmt
2025-07-22 10:42:41 +02:00
Enrico Candino
2047a600ed
Migrate golangci-lint to v2 ( #424 )
...
* golangci-lint upgrade
* fix lint
2025-07-22 10:10:26 +02:00
Hussein Galal
a98c49b59a
Adding custom certificate to the virtual clusters ( #409 )
...
* Adding custom certificate to the virtual clusters
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* docs update
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* integrate cert-manager
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add individual cert tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* docs
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* docs
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* wsl
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-07-21 19:23:11 +03:00
Enrico Candino
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
Hussein Galal
b81073619a
Generate kubeconfig secret ( #392 )
...
* Generate kubeconfig secret
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 typo
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-06-23 14:31:36 +03:00
Hussein Galal
37fe4493e7
Fix HA init server scaling ( #333 )
...
* Fix HA init server scaling
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* increase timeout in e2e test
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-05-12 11:51:35 +03:00
Enrico Candino
2b7202e676
Added NetworkPolicy for Cluster isolation ( #290 )
...
* added cluster NetworkPolicy
* wip tests
* remove focus
* added networking test
* test refactoring
* unfocus
* revert labels
* added async creation of clusters, and namespace deletion
* add unfocus validation
2025-03-07 14:36:49 +01:00
Enrico Candino
5e8bc0d3cd
Update CRDs documentation ( #279 )
...
* complete CRD documentation
* fix missing rebuild of CRDs
2025-03-03 11:47:53 +01:00
Enrico Candino
430e18bf30
Added wsl linter, and fixed related issues ( #275 )
...
* added wsl linter
* fixed issues
2025-02-27 10:59:02 +01:00
Hussein Galal
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
fdb133ad4a
Added Ports to NodePortConfig and expose fixes ( #247 )
...
* fix NodePort service update
* updated crd docs
2025-02-11 14:47:01 +01:00
Enrico Candino
2a7541cdca
Fix missing updates of server certificates ( #219 )
...
* merge
* wip test
* added test for restart
* tests reorg
* simplified tests
2025-02-04 09:17:56 +01:00
Enrico Candino
bc3f906280
Fix status update, updated k3s default version, updated CRDs ( #218 )
...
* fix status update
* fix schema and default image
* removed retry in controller
* removed fmt
2025-01-30 12:56:42 +01:00
Enrico Candino
44045c5592
Added test (virtual cluster creation, with pod) and small kubeconfig refactor ( #211 )
...
* added virtual cluster and pod test
* moved ClusterCreate
* match patch k8s host version
2025-01-24 22:26:01 +01:00
Enrico Candino
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
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