-
Notifications
You must be signed in to change notification settings - Fork 431
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
feat: support for multiple external network #2695
Conversation
|
|
|
…t-multiple-external-network
|
这些应该不需要做了吧? |
已删除 |
…t-multiple-external-network
Please rebase the master and resolve the conflict |
…t-multiple-external-network
|
pkg/apis/kubeovn/v1/types.go
Outdated
MacAddress string `json:"macAddress"` | ||
NatGwDp string `json:"natGwDp"` | ||
QoSPolicy string `json:"qosPolicy"` | ||
ExternalSubnets []string `json:"externalSubnets"` |
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.
IptablesEipSpec支持多个子网好像没有意义,这里应该用ExternalSubnet string json:"externalSubnet"
就可以了
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.
可能后续需要支持单个nat gw pod 支持动态添加网卡的方式扩展到多个网段,源进源出,一个网卡加一张路由表
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.
目前这样也行,后续加那个功能的时候,我们再改
…t-multiple-external-network
|
in order to keep the commit history clean, close the PR and create a new one. #2725 |
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes:
Fixes #2679
WHAT
🤖 Generated by Copilot at d2a7462
This pull request adds support for multiple external subnets for NAT gateway and EIP scenarios. It introduces a new
External
field for theSubnetSpec
type and a newExternalSubnet
field for theVpcNatSpec
andIptablesEipSpec
types. It also refactors the controller logic and the CRD schemas to use these fields instead of the hardcodedVpcExternalNet
constant.🤖 Generated by Copilot at d2a7462
HOW
🤖 Generated by Copilot at d2a7462
External
field toSubnetSpec
type and schema to indicate external subnets (link, link)ExternalSubnet
field toVpcNatSpec
andIptablesEipSpec
types and schemas to specify external subnet name for NAT gateway and EIP (link, link, link, link)ExternalSubnet
field of EIP to get IP and MAC from IPAM, set EIP CIDR, update EIP CR, and enqueue subnet for status update (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)ExternalSubnet
field of NAT gateway to get external gateway and CIDR, set attachment network annotation, and update route rules for NAT gateway pod (link, link, link)External
field of subnet to count and list EIPs in subnet usage and status (link, link)VpcExternalNet
constant andcheckVpcExternalNet
function as they are no longer needed (link, link)MACVLAN_NAD_PROVIDER
constant as it is no longer fixed toVpcExternalNet
network attachment definition (link)