u2o support specify u2o ip on release-1.9 #2935
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 ed91ab1
This pull request adds a new feature to allow users to specify a static IP address for the underlay to overlay interconnection in each subnet. It modifies the
SubnetSpec
schema and struct, thesubnet.go
andvalidator.go
files, and thekube-ovn-crd.yaml
andcrd.yaml
files to support the newu2oInterconnectionIP
field and its validation and reconciliation logic. It also adds a check to prevent users from enabling both the logical gateway and the underlay to overlay interconnection features at the same time.馃 Generated by Copilot at ed91ab1
HOW
馃 Generated by Copilot at ed91ab1
u2oInterconnectionIP
field toSubnetSpec
schema and struct to allow users to configure the underlay to overlay interconnection IP address for each subnet (link, link, link)u2oInterconnectionIP
field changes inenqueueUpdateSubnet
function insubnet.go
(link)u2oInterconnectionIP
field and setchanged
flag ifu2oInterconnection
field is not set informatSubnet
function insubnet.go
(link)u2oInterconnectionIP
field inreconcileU2OInterconnectionIP
function insubnet.go
(link)logicalGateway
andu2oInterconnection
fields are not both set to true, and thatu2oInterconnectionIP
field is within subnet CIDR range inValidateSubnet
function invalidator.go
(link)