CKS: Validate network offering from network if provided rather than global setting#11528
CKS: Validate network offering from network if provided rather than global setting#11528weizhouapache merged 2 commits into4.20apache/cloudstack:4.20from
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11528 +/- ##
=========================================
Coverage 16.17% 16.17%
- Complexity 13283 13284 +1
=========================================
Files 5656 5656
Lines 497996 498007 +11
Branches 60401 60405 +4
=========================================
+ Hits 80533 80535 +2
- Misses 408500 408511 +11
+ Partials 8963 8961 -2
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 |
|
@Pearl1594 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14756 |
|
@blueorangutan package |
|
@borisstoyanov a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14766 |
|
@blueorangutan test |
|
@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14149)
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a bug in the Kubernetes cluster creation process where network offering validation was incorrectly using the global setting instead of validating the network offering from the provided network. The fix ensures that when a specific network is provided for cluster creation, its network offering is validated rather than relying solely on the global configuration.
- Updates network offering validation logic to check the provided network's offering when available
- Adds proper null checks and error handling for network lookup
- Maintains backward compatibility with global network offering configuration
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...ernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java
Show resolved
Hide resolved
|
Tested OK
|
…lobal setting (apache#11528) * CKS: Validate network offering from network if provided rather than global setting * update warning message
Description
This PR adds a fix where in it checks the validity of the network offering of the network provided while creating the CKS cluster rather than that of the network offering set in the global setting
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?