Sync defaultIPv6PrefixLength from VPCNetworkConfiguration to Subnet(Set)#1417
Open
wenqiq wants to merge 8 commits into
Open
Sync defaultIPv6PrefixLength from VPCNetworkConfiguration to Subnet(Set)#1417wenqiq wants to merge 8 commits into
wenqiq wants to merge 8 commits into
Conversation
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (35.22%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1417 +/- ##
==========================================
- Coverage 77.03% 75.20% -1.84%
==========================================
Files 155 156 +1
Lines 22043 22134 +91
==========================================
- Hits 16980 16645 -335
- Misses 3858 3925 +67
- Partials 1205 1564 +359
🚀 New features to boost your workflow:
|
c914a52 to
c982df2
Compare
yanjunz97
reviewed
May 6, 2026
257ab94 to
e34a36b
Compare
dantingl
reviewed
May 11, 2026
Collaborator
dantingl
left a comment
There was a problem hiding this comment.
Please add testing done part.
I think we can do local test by creating VPCNetworkConfiguration CR manually and associate to a Namespace
yanjunz97
reviewed
May 11, 2026
d5ecc64 to
39ae06b
Compare
yanjunz97
reviewed
May 14, 2026
19e774d to
c9c33a6
Compare
yanjunz97
reviewed
May 15, 2026
yanjunz97
reviewed
May 15, 2026
Signed-off-by: Wenqi Qiu <wenqi.qiu@broadcom.com>
Signed-off-by: Wenqi Qiu <wenqi.qiu@broadcom.com>
c9c33a6 to
e096239
Compare
yanjunz97
reviewed
May 15, 2026
Contributor
yanjunz97
left a comment
There was a problem hiding this comment.
Overall LGTM, just one comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync defaultIPv6PrefixLength from VPCNetworkConfiguration to Subnet(Set)
When a VPCNetworkConfiguration carries a defaultIPv6PrefixLength, propagate
it to newly created Subnet and SubnetSet resources so that dual-stack and
IPv6-only clusters receive the correct prefix length without requiring users
to set it manually on every resource.
TestDone:
1.Replace

manager, Modify nsxop.ini and Restart the OperatorPOD=$(kubectl -n vmware-system-nsx get pod -o name | head -1)
kubectl -n vmware-system-nsx exec $POD -- grep -A20 "[k8s]" /etc/nsx-ujo/ncp.ini
2.Create a Custom VPCNetworkConfiguration with defaultIPv6PrefixLength
NS_PROJECT=$(kubectl get vpcnetworkconfigurations system -o jsonpath='{.spec.nsxProject}')
PROFILE=$(kubectl get vpcnetworkconfigurations system -o jsonpath='{.spec.vpcConnectivityProfile}')
echo $PROFILE
/orgs/default/projects/project-quality/vpc-connectivity-profiles/default--47dfafa0-1896-498e-aca3-c952e522a2ad
3.Create a Namespace Associated with the Custom NC
kubectl apply -f test-ns-dualstack.yaml
4.Verify the Namespace Was Associated Correctly
Check that the annotation was set
Wait for NetworkInfo to become Ready
5.Verify SubnetSet Fields