Commit Graph

311 Commits

Author SHA1 Message Date
Daman Arora a05581cec3 add unit tests 2026-01-08 11:27:29 -05:00
Daman Arora 2405249414 add affinty groups to cks list response 2026-01-07 12:29:18 -05:00
Daman Arora 201e5639e9 remove affinity group on cleanup in mcloud managed cks 2026-01-07 09:45:29 -05:00
Daman Arora e0d41831b7 use @component for spring bean 2026-01-07 09:44:54 -05:00
Daman Arora c58dee04d7 remove affinity group mappings when a cluster is deleted 2026-01-07 09:15:46 -05:00
Daman Arora af97ea3911 use DAO query instead of parsing comma-separated UUIDs 2026-01-07 08:45:26 -05:00
Daman Arora 35a7bab9ca use updated getAffinityGroupNodeTypeMap 2026-01-07 08:41:46 -05:00
Daman Arora f625d6ed93 Refactor affinity group mapping 2026-01-07 08:41:17 -05:00
Daman Arora 6e3ede9d78 add new resource KubernetesClusterAffinityGroupMap 2026-01-07 08:39:09 -05:00
Daman Arora a13f360bcd use a new table kubernetes_cluster_affinity_group_map instead of existing kubernetes_cluster 2026-01-07 07:22:02 -05:00
Daman Arora 0706410a3f Add per node type affinity group support for cks 2026-01-06 15:23:30 -05:00
Daman Arora 58799c25ba Refactor affinity group tests in KubernetesServiceHelperImplTest 2026-01-06 12:38:48 -05:00
Daman Arora 4da3bcec83 Update affinity group handling to support multiple IDs in KubernetesServiceHelper and related classes 2026-01-06 12:38:23 -05:00
Daman Arora fe5c0260d6 Refactor affinity group handling in KubernetesCluster and KubernetesClusterVO to support multiple IDs 2026-01-06 12:37:42 -05:00
Daman Arora 4706d0315e Add affinity group handling for worker, control, and etcd nodes in KubernetesClusterManagerImpl 2026-01-06 11:07:43 -05:00
Daman Arora 8bf7a453c9 Add affinity group ID fields and accessors to KubernetesCluster and KubernetesClusterVO 2026-01-06 11:04:48 -05:00
Daman Arora 1114f759c2 Refactor KubernetesServiceHelperImplTest to include affinity group handling and enhance node type validation tests 2026-01-06 10:27:03 -05:00
Daman Arora 58804a39a7 Rename kubernetesClusterHelper to kubernetesServiceHelper for consistency 2026-01-06 10:26:51 -05:00
Daman Arora a7e5270336 Implement getAffinityGroupNodeTypeMap in kubernetes service helper 2026-01-06 10:26:41 -05:00
Daman Arora 9f137af735 Merge branch 'main' into implement-cks-node-affinity 2026-01-06 09:05:19 -05:00
Daman Arora fe0a2a3397 Add NODE_TYPE_AFFINITY_GROUP_MAP constant and affinity group mapping to CreateKubernetesClusterCmd 2026-01-06 08:51:43 -05:00
Suresh Kumar Anaparti 4628385051
Merge branch '4.22' 2026-01-05 16:17:50 +05:30
Pearl Dsilva 7a11bd2f98
CKS: Fix issue with scaling down CKS Nodes when deployed in HA mode (#12302) 2025-12-30 13:08:13 +01:00
Daan Hoogland 22da57f922 Merge branch '4.22' 2025-12-22 14:13:50 +01:00
Daan Hoogland 55ab7c5589 Merge branch '4.20' into 4.22 2025-12-22 13:23:37 +01:00
vladimirpetrov b394b5ba74
Fix terms, typos and grammar mistakes in the API, error messages, events, etc. (#7857)
This PR aligns the use of terminology, renaming VM / virtual machine references to 'Instance' and also capitalising the terms Templates, Network, Snapshot, User, Account in CloudStack APIs, error and log messages, events, tooltips, etc. Many typos, grammar and spelling mistakes were fixed, also terms like IPv4, VPN, VPC, etc. were properly capitalised. Some error messages were cleaned for better readability. The test cases, expecting some exception strings were adjusted accordingly.

Here is the wiki page, describing the changes in details:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Object+Naming+and+Title+Case+Convention

---------

Co-authored-by: Manoj Kumar <manojkr.itbhu@gmail.com>
Co-authored-by: Harikrishna <harikrishna.patnala@gmail.com>
2025-12-22 15:18:58 +05:30
K Viddya 558232e8e6
Feature s390x multiarch support (#12214)
Signed-off-by: Niyam Siwach <niyam@ibm.com>
Signed-off-by: Viddya K <viddya.k@ibm.com>
Co-authored-by: root <root@c32379v1.fyre.ibm.com>
2025-12-19 10:06:58 +01:00
Daan Hoogland f06ac512fa merge forward 4.22 to main 2025-12-16 11:50:58 +01:00
Pearl Dsilva 0a13fb27f5
Prevent scaling of cluster if count / resources exceed account resource limits (#12167) 2025-12-12 13:57:15 +01:00
Lucas Martins 12f4321952
Changes error message when using invalid `endpoint.url` (#8603)
Co-authored-by: lucas.martins.scclouds <lucas.martins@scclouds.com.br>
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
Co-authored-by: erikbocks <erik.bock@outlook.com>
2025-12-08 09:41:56 +01:00
Daan Hoogland 9032fe3fb5 merge LTS branch 4.22 into main 2025-11-26 11:55:50 +01:00
Wei Zhou 50fe265017
Merge remote-tracking branch 'apache/4.20' into 4.22 2025-11-07 17:19:53 +01:00
Wei Zhou 8230f04a79
CKS: update cloud.kubernetes.cluster.network.offering to dynamic (#11847) 2025-11-06 11:13:53 +01:00
Harikrishna Patnala dbda673e1f Updating pom.xml version numbers for release 4.23.0.0-SNAPSHOT
Signed-off-by: Harikrishna Patnala <harikrishna.patnala@gmail.com>
2025-11-05 16:54:39 +05:30
Harikrishna Patnala d160731b9f Updating pom.xml version numbers for release 4.22.1.0-SNAPSHOT
Signed-off-by: Harikrishna Patnala <harikrishna.patnala@gmail.com>
2025-11-05 16:07:07 +05:30
Harikrishna Patnala 71f47d6130 Updating pom.xml version numbers for release 4.22.0.0
Signed-off-by: Harikrishna Patnala <harikrishna.patnala@gmail.com>
2025-10-30 19:23:56 +05:30
Nicolas Vazquez 2dbc86abfa
Fix CKS cluster creation not honoring the CKS ISO arch (#11902)
* Fix CKS cluster creation not honouring the CKS ISO arch

* Fix arch type reference to choose right template

* Include template name on the CKS clusters response

---------

Co-authored-by: Harikrishna Patnala <harikrishna.patnala@gmail.com>
2025-10-27 10:58:46 +05:30
Wei Zhou e333ce9782
Updating pom.xml version numbers for release 4.20.3.0-SNAPSHOT 2025-10-24 09:13:19 +02:00
Wei Zhou 4dc3931233
Updating pom.xml version numbers for release 4.20.2.0
Signed-off-by: Wei Zhou <weizhou@apache.org>
2025-10-16 11:42:56 +02:00
Pearl Dsilva f4b6a74a94
Add support for CSI driver in CKS (#11419)
* Support creation of PV(persistent volumes) in CloudStack projects

* add support for snapshot APIs for project role

* Add support to setup csi driver on k8s cluster creation

* fix deploy script

* update response

* fix table name

* fix linter

* show if csi driver is setup in cluster

* delete pvs whose reclaim policy is delete when cluster is destroyed

* update ref

* move changes to 4.22

* fix variables

* fix eof
2025-10-15 11:03:47 +05:30
Vishesh 0ca267f516
Allow uploading of ISO for creating kubernetes supported versions (#9561) 2025-10-13 12:51:30 +02:00
Abhishek Kumar a6ef24d167
server: consistent domainpath in api responses (#11589)
* server: consistent domainpath in api responses

Currently, some APIs return domainpath as 'ROOT/domain1/domain2' while
other return it as '/domain1/domain2'. This PR makes the response
consistent like "ROOT/domain1/domain2"

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* more changes

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

---------

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-10-09 13:06:28 +05:30
Daan Hoogland 5f63e8493c Merge branch '4.20' 2025-10-07 15:12:53 +02:00
Wei Zhou e12813de49
CKS: fix CKS creation on an existing Shared and Routed network (#11735) 2025-10-03 14:35:43 +05:30
Wei Zhou c631d6a480
CKS: generate a random UUID as password of CKS user in project (#11639) 2025-10-01 08:47:58 +02:00
Wei Zhou 9cc88b8dcc
CKS: fix control plane endpoint IP (#11720) 2025-09-29 09:10:56 +02:00
Harikrishna 3ef2556900
Fix scaleKubernetesCluster API (#11652)
* Fix scaleKubernetesCluster

* Added more state transitions
2025-09-20 17:57:45 +05:30
Wei Zhou 70a4503ea1
Merge remote-tracking branch 'apache/4.20' 2025-09-11 14:04:52 +02:00
Bernardo De Marco Gonçalves 7c727a3440
CKS: Fix transition exception when scaling Stopped k8s clusters (#11598)
* add new k8s cluster transition

* apply suggestion

* apply suggestion
2025-09-11 10:42:41 +02:00
Wei Zhou 8089d32740
Merge remote-tracking branch 'apache/4.20' 2025-09-09 19:50:22 +02:00