Add python code for iperf3 pod-to-pod test#629
Merged
Conversation
118db07 to
e0eab8f
Compare
400ad08 to
32e896b
Compare
32e896b to
213b89c
Compare
45aae21 to
640869b
Compare
3371631 to
ed1834e
Compare
ed1834e to
b09f850
Compare
sumanthreddy29
approved these changes
May 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces significant enhancements to the Kubernetes client module, adds a new
PodRoleCommandclass for managing Kubernetes pod roles, and includes updates to theiperf3module documentation for running benchmarks. Key changes focus on improving functionality, modularity, and usability.Kubernetes Client Enhancements:
Refactored the
KubernetesClientclass to include a_setup_clientsmethod for initializing API clients and aset_contextmethod for switching Kubernetes contexts. Added new utility methods such asget_pod_name_and_ip,get_pod_details,get_node_details, andcollect_pod_and_node_infoto retrieve and manage pod and node information. [1] [2]Modified the
run_pod_exec_commandmethod to use an empty string ("") as the default value fordest_pathand updated logic to handle this change. [1] [2]New
PodRoleCommandClass:PodRoleCommandclass inpod_command.pyto manage Kubernetes pods based on roles (e.g., client or server). This includes methods for setting contexts, retrieving pod details, running commands, and validating configurations.Documentation Updates:
iperf3module README with detailed instructions for validating, executing, and collecting results fromiperf3benchmarks in Kubernetes environments.Configuration Updates:
.pylintrcto disable additional pylint checks for "too-many-public-methods" and "too-many-branches," allowing more flexibility in the codebase.Utility Enhancements:
save_info_to_fileinkubernetes_client.pyto save pod and node information to files.