diff --git a/scripts/lib/common.sh b/scripts/lib/common.sh index 30f72b763c..ad5a7fe7e9 100644 --- a/scripts/lib/common.sh +++ b/scripts/lib/common.sh @@ -43,7 +43,7 @@ function run_performance_test_130_pods() { while [ ${#SCALE_UP_DURATION_ARRAY[@]} -lt 3 ] do ITERATION_START=$SECONDS - $KUBECTL_PATH scale -f deploy-130-pods.yaml --replicas=130 + $KUBECTL_PATH scale -f ./testdata/deploy-130-pods.yaml --replicas=130 sleep 20 while [[ ! $($KUBECTL_PATH get deploy | grep 130/130) ]] do @@ -54,7 +54,7 @@ function run_performance_test_130_pods() { SCALE_UP_DURATION_ARRAY+=( $((SECONDS - ITERATION_START)) ) MIDPOINT_START=$SECONDS - $KUBECTL_PATH scale -f deploy-130-pods.yaml --replicas=0 + $KUBECTL_PATH scale -f ./testdata/deploy-130-pods.yaml --replicas=0 while [[ $($KUBECTL_PATH get pods) ]] do sleep 1 @@ -105,7 +105,7 @@ function run_performance_test_730_pods() { while [ ${#SCALE_UP_DURATION_ARRAY[@]} -lt 3 ] do ITERATION_START=$SECONDS - $KUBECTL_PATH scale -f deploy-730-pods.yaml --replicas=730 + $KUBECTL_PATH scale -f ./testdata/deploy-730-pods.yaml --replicas=730 sleep 100 while [[ ! $($KUBECTL_PATH get deploy | grep 730/730) ]] do @@ -116,7 +116,7 @@ function run_performance_test_730_pods() { SCALE_UP_DURATION_ARRAY+=( $((SECONDS - ITERATION_START)) ) MIDPOINT_START=$SECONDS - $KUBECTL_PATH scale -f deploy-730-pods.yaml --replicas=0 + $KUBECTL_PATH scale -f ./testdata/deploy-730-pods.yaml --replicas=0 sleep 100 while [[ $($KUBECTL_PATH get pods) ]] do @@ -168,7 +168,7 @@ function run_performance_test_5000_pods() { while [ ${#SCALE_UP_DURATION_ARRAY[@]} -lt 3 ] do ITERATION_START=$SECONDS - $KUBECTL_PATH scale -f deploy-5000-pods.yaml --replicas=5000 + $KUBECTL_PATH scale -f ./testdata/deploy-5000-pods.yaml --replicas=5000 sleep 100 while [[ ! $($KUBECTL_PATH get deploy | grep 5000/5000) ]] do @@ -179,7 +179,7 @@ function run_performance_test_5000_pods() { SCALE_UP_DURATION_ARRAY+=( $((SECONDS - ITERATION_START)) ) MIDPOINT_START=$SECONDS - $KUBECTL_PATH scale -f deploy-5000-pods.yaml --replicas=0 + $KUBECTL_PATH scale -f ./testdata/deploy-5000-pods.yaml --replicas=0 sleep 100 while [[ $($KUBECTL_PATH get pods) ]] do