kubectl ko performance enhance (#2975) #2992
Merged
+535
−124
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 57beabd
This pull request enhances the pinger tool and package to support custom target IP and port pairs for connectivity check. It adds a new flag
--target-ip-ports
to the tool and modifies thepinger
package to handle it. It also fixes some minor typos in the logs.🤖 Generated by Copilot at 57beabd
HOW
🤖 Generated by Copilot at 57beabd
TargetIPPorts
to theConfiguration
struct and a new flag--target-ip-ports
to theParseFlags
function to store and parse the user-specified target protocol, IP and port for connectivity check (link, link, link)checkAccessTargetIPPorts
inping.go
to perform the connectivity check for the target protocol, IP and port using theTCPConnectivityCheck
orUDPConnectivityCheck
function from theutil
package, and log the result or error of each check (link)checkAccessTargetIPPorts
function from theping
function if theTargetIPPorts
field is not empty, and set theerrHappens
variable to true if the function returns an error (link)pingNodes
andpingPods
functions, changing "connnectivity" to "connectivity" (link, link)kubeovnv1
package inping.go
to use the constants and types for the kube-ovn API, such asProtocolIPv6
(link)