-
Notifications
You must be signed in to change notification settings - Fork 21
Add support for "Isolated" AccessMode in Subnet configuration #1183
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?
Add support for "Isolated" AccessMode in Subnet configuration #1183
Conversation
/e2e |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1183 +/- ##
=======================================
Coverage 73.81% 73.81%
=======================================
Files 141 141
Lines 22350 22359 +9
=======================================
+ Hits 16498 16505 +7
- Misses 4829 4830 +1
- Partials 1023 1024 +1
🚀 New features to boost your workflow:
|
/e2e |
1 similar comment
/e2e |
/e23 |
/e2e |
3 similar comments
/e2e |
/e2e |
/e2e |
} | ||
|
||
// Additional DHCP server config for a VPC Subnet. | ||
// DHCPServerAdditionalConfig Additional DHCP server config for a VPC Subnet. |
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.
// DHCPServerAdditionalConfig Additional DHCP server config for a VPC Subnet. | |
// DHCPServerAdditionalConfig defines the additional DHCP server config for a VPC Subnet. |
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.
fixed
AccessModePublic string = "Public" | ||
AccessModePrivate string = "Private" | ||
AccessModeProject string = "PrivateTGW" | ||
AccessModeIsolated string = "Isolated" |
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.
Not introduced in this PR, would you think we can use AccessMode instead of string here?
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.
ok, updated
IPv4SubnetSize int `json:"ipv4SubnetSize,omitempty"` | ||
// Access mode of Subnet, accessible only from within VPC or from outside VPC. | ||
// +kubebuilder:validation:Enum=Private;Public;PrivateTGW | ||
// +kubebuilder:validation:Enum=Private;Public;PrivateTGW;Isolated |
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.
Could you run make manifests
and make generate-api-docs
?
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.
done
IPv4SubnetSize int `json:"ipv4SubnetSize,omitempty"` | ||
// Access mode of Subnet, accessible only from within VPC or from outside VPC. | ||
// +kubebuilder:validation:Enum=Private;Public;PrivateTGW | ||
// +kubebuilder:validation:Enum=Private;Public;PrivateTGW;Isolated |
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.
Would you know if we would like to support Isolated AccessMode for Subnetset?
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.
I think so
55df814
to
ea64b48
Compare
/e2e |
1 similar comment
/e2e |
ea64b48
to
e6c523e
Compare
/e2e |
e6c523e
to
295f95f
Compare
Signed-off-by: Xie Zheng <[email protected]>
295f95f
to
3518096
Compare
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.
LGTM
from NSX API doc https://github-vcf.devops.broadcom.net/vcf/nsx/blob/nsx-main/mp/policy/policy-api/src/main/resources/api_spec/root/nsx-policy/policy-vpc-subnet.yml#L219. "Isolated - VPC Subnet is not accessible from other VPC Subnets within the same VPC. |
✨ What's Changed
🎯 Motivation
The current Subnet API only supports three AccessMode types: 'Private', 'Public', and 'PrivateTGW'. There is a need to support 'Isolated' AccessMode for specific network segmentation requirements where subnets need to be completely isolated from other network segments.
This enhancement provides:
✅ Testing
🔧 Technical Details
Before: Subnet AccessMode was limited to three options
// +kubebuilder:validation:Enum=Private;Public;PrivateTGW
After: Added 'Isolated' as a fourth option
Key Changes:
AccessModeIsolated
constant in subnet_types.go📎 Additional Notes