refactor: Improving query performance of iptablesEips using caching #2713
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 5e4a6ba
Refactor controller package to improve performance, readability, and consistency. Use iptables eips lister and label selectors for QoS policy management. Simplify and fix iptables rule generation for vpc eip updates.
🤖 Generated by Copilot at 5e4a6ba
HOW
🤖 Generated by Copilot at 5e4a6ba
fields
package with thelabels
package and use the iptables eips lister instead of the kubeovn client for better performance and consistency in the controller package (link, link)handleUpdateQoSPolicy
function inqos_policy.go
to use the iptables eips lister with label selectors and assign theeip
variable directly from theeips
slice (link, link)calcDualSubnetStatusIP
andcalcSubnetStatusIP
functions insubnet.go
to use the iptables eips lister with label selectors (link, link)handleUpdateVpcEip
function invpc_nat_gateway.go
to use the iptables eips lister with label selectors and assign theeip
variable directly from theeips
slice (link, link)addEipQoS
anddeleteEipQoS
functions invpc_nat_gw_eip.go
to use the iptables eips lister with label selectors and check the QoS policy sharing status (link)