metrics: Improve iperf timeout

The kubectl wait has a built in timeout of 30s, so
wrapping it in waitForProcess, means we have
180/2 * 30 delay, which is much longer than intended,
so just set the timeout directly.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2025-03-06 15:46:12 +00:00
parent af4058fa82
commit 97151cce4e

View File

@ -186,8 +186,7 @@ function iperf3_start_deployment() {
kubectl create -f "${IPERF_DEPLOYMENT}"
# Check deployment creation
local cmd="kubectl wait --for=condition=Available deployment/iperf3-server-deployment"
waitForProcess "${wait_time}" "${sleep_time}" "${cmd}"
local cmd="kubectl wait --for=condition=Available deployment/iperf3-server-deployment --timeout=${wait_time}s"
# Create DaemonSet
kubectl create -f "${IPERF_DAEMONSET}"