Skip to content

Commit

Permalink
Fixing HostNetwork Bug
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Talerico <[email protected]>
  • Loading branch information
Joe Talerico committed Oct 6, 2023
1 parent 5e39470 commit f65c289
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/k8s-netperf/k8s-netperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ func executeWorkload(nc config.Config, s config.PerfScenarios, hostNet bool, ipe
serverIP = s.NetperfService.Spec.ClusterIP
}
} else {
serverIP = s.Server.Items[0].Status.PodIP
if hostNet {
serverIP = s.ServerHost.Items[0].Status.PodIP
} else {
serverIP = s.Server.Items[0].Status.PodIP
}
}
if !s.NodeLocal {
Client = s.ClientAcross
Expand Down

0 comments on commit f65c289

Please sign in to comment.