u2o support specify u2o ip on release-1.11 #2937
Merged
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.
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes:
Fixes #(issue-number)
WHAT
馃 Generated by Copilot at 7e2de89
This pull request adds a new feature to allow user-specified or dynamic IP addresses for the underlay to overlay interconnection in subnets. It modifies the
SubnetSpec
andSubnetStatus
schemas, the subnet controller logic, and the subnet validation function. It also updates thekube-ovn-crd.yaml
andcrd.yaml
files to reflect the schema changes.馃 Generated by Copilot at 7e2de89
HOW
馃 Generated by Copilot at 7e2de89
U2OInterconnectionIP
to theSubnetSpec
struct to specify a static IP address for the underlay to overlay interconnection (link)u2oInterconnectionIP
to theSubnetStatus
schema in thekube-ovn-crd.yaml
andcrd.yaml
files to store the IP address of the logical router port that connects the overlay subnet to the underlay network (link, link)U2OInterconnectionIP
field in theValidateSubnet
function and ensure that it is within the subnet CIDR and not conflicting with thelogicalGateway
field (link)U2OInterconnectionIP
field changes in theenqueueUpdateSubnet
function (link)U2OInterconnectionIP
field if theU2OInterconnection
field is false and set thechanged
flag to true in theformatSubnet
function (link)reconcileU2OInterconnectionIP
function, handling the cases where theU2OInterconnectionIP
field is specified or changed by the user (link)