Skip to content

Commit

Permalink
Skip hostNetwork through Service
Browse files Browse the repository at this point in the history
No need to run this scenario.

Signed-off-by: Joe Talerico <[email protected]>
  • Loading branch information
Joe Talerico authored and mohit-sheth committed Nov 8, 2023
1 parent 017b0dd commit f79beb8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions cmd/k8s-netperf/k8s-netperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,15 @@ var rootCmd = &cobra.Command{
nc.AcrossAZ = acrossAZ

if s.HostNetwork {
npr := executeWorkload(nc, s, true, false)
sr.Results = append(sr.Results, npr)
if iperf3 {
ipr := executeWorkload(nc, s, true, true)
if len(ipr.Profile) > 1 {
sr.Results = append(sr.Results, ipr)
// No need to run hostNetwork through Service.
if !nc.Service {
npr := executeWorkload(nc, s, true, false)
sr.Results = append(sr.Results, npr)
if iperf3 {
ipr := executeWorkload(nc, s, true, true)
if len(ipr.Profile) > 1 {
sr.Results = append(sr.Results, ipr)
}
}
}
}
Expand Down

0 comments on commit f79beb8

Please sign in to comment.