subnet: update status after deleting IP CR #3113
Closed
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
Which issue(s) this PR fixes:
Fixes #(issue-number)
WHAT
🤖 Generated by Copilot at f9a4ee3
This pull request enhances the garbage collection and status update of logical switch ports and IP custom resources in the kube-ovn controller. It also adds a new e2e test case to verify the subnet status updates in the underlay network.
🤖 Generated by Copilot at f9a4ee3
HOW
🤖 Generated by Copilot at f9a4ee3
subnet
to store the subnet name of the lsp inmarkAndCleanLSP
and query the IP CR to get the subnet name (link, link)updateSubnetStatusQueue
after marking and cleaning the lsp, deleting the IP CR, or releasing the address for the port (link, link, link)syncKubeOvnNet
by assigning the subnet object to a variable (link)waitSubnetStatusUpdate
to theunderlay
package to wait for the subnet status fields to match the expected values (link)waitSubnetStatusUpdate
function in theTestUnderlayIPAM
test case to verify the subnet status updates after creating and deleting pods with different subnets and IP versions (link, link, link, link, link, link, link, link, link)