feat: improve network performance test to make it reusable and modifiable #2969
+1,945
−873
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 PR is this?
/kind feature
What this PR does / why we need it:
This pull request includes significant updates to the
network/benchmarks/netperf
directory, focusing on improving the build process, enhancing test capabilities, and updating dependencies. The most important changes include modifying theMakefile
to streamline Docker builds and test execution, updating thego.mod
file with new dependencies, and adding new utility libraries for Kubernetes interactions.Build and Test Improvements:
network/benchmarks/netperf/Makefile
: Updated the Docker build process to use dynamic repository and image tags, added atest
target for running Go tests, and introduced alocaltest
target for local test execution. [1] [2] [3]Dependency Updates:
network/benchmarks/netperf/go.mod
: Updated module path and dependencies to more recent versions, includingk8s.io/api
,k8s.io/apimachinery
, andk8s.io/client-go
.New Utility Libraries:
network/benchmarks/netperf/lib/outputlib.go
: Added functions for retrieving logs and data from Kubernetes pods and processing raw data into output files.network/benchmarks/netperf/lib/testlib.go
: Introduced a new library for handling test parameters, performing tests, and managing Kubernetes resources.network/benchmarks/netperf/lib/utilslib.go
: Added utility functions for setting up Kubernetes clients, creating services, and managing replication controllers.Which issue(s) this PR fixes:
Fixes #2876