Enrico Candino
26a0bb6583
Added ServiceCIDR lookup, and changed default ( #263 )
...
* added serviceCIDR lookup
* fix log
* fix comment
* swap serviceCIDR lookup
2025-02-24 12:08:58 +01:00
Hussein Galal
8811ba74de
Fix cluster spec update ( #257 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-02-18 15:40:49 +02: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
51a8fd8a8d
Fix and enhancements to IngressExposeConfig (annotations) ( #248 )
...
* ingress fixes
* added annotations to IngressConfig
* sync annotations with CR
* removed hosts
* small doc for ingress
2025-02-14 12:38:42 +01: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
8d1bda4733
fix panic for nil Expose ( #240 )
2025-02-10 12:44:53 +01:00
Hussein Galal
ac132a5840
Fixing etcd pod controller ( #233 )
...
* Fixing etcd pod controller
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix logic in etcd pod controller
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-02-06 22:36:05 +02:00
Enrico Candino
48efbe575e
Fix Webhook certificate recreate ( #226 )
...
* wip cert webhook
* fix lint
* cleanup and refactor
* fix go.mod
* removed logs
* renamed
* small simplification
* improved logging
* improved logging
* some tests for config data
* fix logs
* moved interface
2025-02-05 21:55:34 +01:00
jpgouin
3df5a5b780
Merge pull request #213 from jp-gouin/fix-ingress
...
fix ingress creation, use the ingress host in Kubeconfig when enabled
2025-02-04 09:31:49 +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
Hussein Galal
19efdc81c3
Add initial support for daemonsets ( #217 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2025-01-30 00:59:25 +02:00
Enrico Candino
54be0ba9d8
Logs and organization cleanup ( #208 )
...
* logs and organization cleanup
* getting log from context
* reused log var
2025-01-29 12:03:33 +01:00
Enrico Candino
72b5a98dff
Fix typos and adding spellcheck linter ( #215 )
...
* adding spellcheck linter
* fix typos
2025-01-28 17:47:45 +01:00
jpgouin
2019decc78
check value of cluster.Spec.Expose.Ingress
2025-01-28 14:34:50 +00:00
jpgouin
ebdeb3aa58
fix merge
2025-01-28 14:27:50 +00:00
jpgouin
c88890e502
Merge branch 'main' into fix-ingress
2025-01-28 15:11:09 +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
jpgouin
e6db5a34c8
fix ingress creation, use the ingress host in Kubeconfig when enabled
2025-01-24 18:48:31 +00:00
Hussein Galal
931c7c5fcb
Fix secret tokens and DNS translation ( #200 )
...
* Include init containers in token translation
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix kubernetes.defaul service DNS translation
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add skip test var to dapper
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add kubelet version and image pull policy to the shared agent
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-01-23 01:55:05 +02:00
Enrico Candino
fd6ed8184f
removed antiaffinity ( #199 )
2025-01-22 18:34:30 +01:00
Enrico Candino
b0aa22b2f4
Simplify Cluster spec ( #193 )
...
* removed some required parameters, adding defaults
* add hostVersion in Status field
* fix tests
2025-01-21 21:19:44 +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
Hussein Galal
ccaa09fa4a
Add PVC syncing support ( #179 )
...
* Add pvc syncing support
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-01-14 20:57:04 +02:00
Enrico Candino
f9ddec53b7
Added priorityClass to Clusters and ClusterSets ( #180 )
...
* added priorityClass to Clusters and ClusterSets
* fixed comment
2025-01-14 11:05:48 +01:00
Enrico Candino
7fdd48d577
Implementation of GetStatsSummary and GetMetricsResource for Virtual Kubelet ( #163 )
...
* implemented GetStatsSummary and GetMetricsResource for Virtual Kubelet
* fixed ClusterRole for node proxy
* limit the clusterrole with get and list
* remove unused Metrics client interface
2024-12-27 11:41:40 +01:00
jpgouin
70a098df4c
allow exec into pod and fetching log in shared mode ( #160 )
2024-12-17 11:41:17 +01:00
Hussein Galal
6739aa0382
Initial networking support for shared mode ( #154 )
...
* Initial networking support for shared mode
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix deletion logic and controller reference
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 >
* golintci
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-12-10 23:22:55 +02:00
Enrico Candino
72b2a5f1d1
Added podSecurityAdmissionLevel to ClusterSet ( #145 )
...
* added Namespace reconciliation for PodSecurity labels
* added Namespace Watch
* added tests, and example
* bump deps
2024-12-04 21:38:02 +01:00
Enrico Candino
6db5247ff7
fix netpol reconciliation ( #150 )
2024-11-28 01:44:37 +01:00
Enrico Candino
c561b033df
Added allowedNodeTypes to ClusterSet, and fixed NetworkPolicy reconciliation ( #144 )
...
* updated CRDs
* added Mode to ClusterSet, and enum to CRD
* fix typos
* fix mode type in cli
* deletion of second clusterset in same namespace
* removed focused test, added clusterset example
* renamed modes
* added allowedNodeTypes, fixed samples
* fixed network policy reconciliation
2024-11-27 23:00:39 +02:00
Enrico Candino
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
Hussein Galal
bc25c1c70a
Serviceaccount token synchronization ( #139 )
...
* Serviceaccount token sync
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixing typo
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-11-08 00:11:56 +02:00
Hussein Galal
84f921641b
Token random generation ( #136 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-11-01 21:27:03 +02:00
Michael Bolot
26a7fa023f
Adding basic volume syncing ( #137 )
...
* Adding basic volume syncing
Adds syncing for basic volume types (secret/configmap/projected secret
and configmap). Also changes the virtual kubelet to use a cache from
controller-runtime rather than a client for some operations.
2024-10-31 11:57:59 -05:00
Hussein Galal
7599d6946f
Fix virtual node types ( #135 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-10-24 23:56:17 +03:00
Hussein Galal
f04902f0a2
Add structured logging via zap ( #133 )
...
* Add structured logging properly
use a centralized logger wrapper to work with controller and virt-kubelet
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix some log messages
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 >
2024-10-22 01:04:21 +03:00
Hussein Galal
d19f0f9ca6
virtual-kubelet controller integration ( #130 )
...
* Virtual kubelet controller integration
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add k3k-kubelet image to the release workflow
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add k3k-kubelet image to the release workflow
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix build/release workflow
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Remove pkg directory in k3k-kubelet
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* rename Type to Config
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Move the kubelet and config outside of pkg
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix comments
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix naming throughout the package
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix comments
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* more fixes to naming
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 >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-10-21 22:54:08 +03:00
Hussein Galal
bf1fe2a71c
Adding Networkpolicy to ClusterSets ( #125 )
...
* Adding cluster set types
Adds types for cluster sets, which allows constraining a few elements of
clusters including: overall resource usage, and which nodes it can use.
* Add networkpolicy to clustersets
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix comments
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix linting issues
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixing node controller logic and nit 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 >
* fix main cli
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Comment the resource quota for clustersets
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
Co-authored-by: Michael Bolot <michael.bolot@suse.com >
2024-10-16 00:27:42 +03:00
Michael Bolot
ab33b3cb3f
Adding poc for virtual kubelet ( #112 )
...
Adds a POC for running pods in the host cluster powered by virtual kubelet.
2024-10-01 00:33:10 +03:00
Michael Bolot
56da25941f
Fixing bugs with namespaced clusters ( #111 )
...
Fixes a few bugs with namespaced clusters, specifically:
- The agent config still used a hardcoded value for the config secret
mount
- The kubeconfig generation still used the old "cluster namespace" as
the destination
In addition, changes the headless service name to not have two "-".
2024-09-06 02:15:36 +03:00
Michael Bolot
9faab4f82d
Changing the cluster to be namespaced ( #110 )
...
* Changing the cluster to be namespaced
Changes the cluster type to be namespaced (and changes the various
controllers to work with this new feature). Also adds crd generation and
docs to the core cluster type.
* CI fix
2024-09-05 22:50:11 +03:00
Hussein Galal
0cad65e4fe
Fix for readiness probe ( #96 )
...
* Fix for readiness probe
* update code generator code
2024-03-15 01:04:52 +02:00
Hussein Galal
ba35d12124
Cluster spec update ( #90 )
...
* Remove unused functions
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* enable cluster server and agent update
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-01-25 06:37:59 +02:00
Hussein Galal
6fc22df6bc
Cluster type validations ( #89 )
...
* Cluster type validations
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Cluster type validations
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-01-12 23:09:30 +02:00
Hussein Galal
5e141fe98e
Add kubeconfig subcommand ( #87 )
...
* Add kubeconfig subcommand
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add kubeconfig subcommand
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add kubeconfig subcommand
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add kubeconfig subcommand
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-01-11 00:57:46 +02:00
Hussein Galal
3cdcb04e1a
Add validation for system cluster name for both controller and cli ( #81 )
...
* Add validation for system cluster name for both controller and cli
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add validation for system cluster name for both controller and cli
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Add validation for system cluster name for both controller and cli
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-01-06 02:15:20 +02:00
Hussein Galal
fedfa109b5
Fix append to empty slice ( #80 )
...
* Fix append to empty slice
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix initialization of addresses slice
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-01-04 01:49:48 +02:00
Hussein Galal
67c8cac611
[controller] HA stabilization and fix rejoining ephermal nodes ( #68 )
...
* Remove etcd member if server pod gets removed
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* make sure to add finalizer to server pod only in HA mode
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix recursion bug and add new fields to cluster status
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixing comments
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixing comments
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2023-12-13 00:21:02 +02:00
Hussein Galal
dd618e580a
use statefulsets for servers ( #67 )
...
* use statefulsets for servers
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* remove unused code
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix comments
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2023-11-28 23:51:50 +02:00