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:
WHAT
🤖 Generated by Copilot at 37b4454
This pull request enhances the garbage collection of load balancers and adds support for dual-stack services. It refactors the
gcLoadBalancer
function inpkg/controller/gc.go
to use more efficient data structures and log more information. It also introduces a new helper functionServiceClusterIPs
inpkg/util/k8s.go
to get the cluster IPs of a service.🤖 Generated by Copilot at 37b4454
HOW
🤖 Generated by Copilot at 37b4454
time
package and record start time ofgcLoadBalancer
function (link, link)ServiceClusterIPs
helper function to handle dual-stack services (link, link)ok
idiom (link, link, link, link)gcLoadBalancer
function (link)