-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CKS: Allow affinity group selection during cluster creation #12386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…to CreateKubernetesClusterCmd
…ndling and enhance node type validation tests
…ubernetesClusterVO
…bernetesClusterManagerImpl
…lusterVO to support multiple IDs
…erviceHelper and related classes
…ting kubernetes_cluster
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16294 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12386 +/- ##
============================================
+ Coverage 17.76% 17.88% +0.11%
- Complexity 15859 16062 +203
============================================
Files 5923 5932 +9
Lines 530470 531718 +1248
Branches 64823 65001 +178
============================================
+ Hits 94243 95094 +851
- Misses 425682 425992 +310
- Partials 10545 10632 +87
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16346 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-15195)
|
test/integration/component/test_kubernetes_cluster_affinity_groups.py
Outdated
Show resolved
Hide resolved
test/integration/component/test_kubernetes_cluster_affinity_groups.py
Outdated
Show resolved
Hide resolved
engine/schema/src/main/resources/META-INF/db/schema-42210to42300.sql
Outdated
Show resolved
Hide resolved
| List<KubernetesUserVmResponse> vmResponses = new ArrayList<>(); | ||
| List<KubernetesClusterVmMapVO> vmList = kubernetesClusterVmMapDao.listByClusterId(kubernetesCluster.getId()); | ||
| ResponseView respView = ResponseView.Restricted; | ||
| ResponseView userVmResponseView = ResponseView.Restricted; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool +1
...ernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java
Show resolved
Hide resolved
|
Added docs pr: apache/cloudstack-documentation#620 |
engine/schema/src/main/resources/META-INF/db/schema-42210to42300.sql
Outdated
Show resolved
Hide resolved
Pearl1594
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code overall lgtm
...bernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesServiceHelperImpl.java
Outdated
Show resolved
Hide resolved
|
@blueorangutan package |
|
@harikrishna-patnala a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16675 |
Description
This PR adds support for specifying affinity groups during CKS (CloudStack Kubernetes Service) cluster creation, allowing users to control VM placement for high availability.
Changes:
nodeaffinitygroupsparameter forcreateKubernetesClusterAPIDesign doc:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Allow+users+to+select+affinity+group+during+managed+CKS+cluster+creation
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
cmk based api testing:
Screen recording
Screencast.from.2026-01-13.06-47-14.mp4
Screenshots
How Has This Been Tested?
How did you try to break this feature and the system with this change?