Skip to content

Commit bc5a331

Browse files
authored
not fail if dw object was not created (#22940)
1 parent 3b1d45e commit bc5a331

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/performance/load-tests/load-test.sh

+6
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ function runTest() {
209209
if [ $start_separately = true ]; then
210210
namespace=$test_namespace_name$i
211211
fi
212+
213+
if ! kubectl get dw $dw_name$i -n $namespace &>/dev/null; then
214+
echo "$dw_name$i devworkspace does not exist. Moving to the next iteration."
215+
continue
216+
fi
217+
212218
if [ "$(kubectl get dw $dw_name$i -n $namespace --template='{{.status.phase}}')" == "Running" ]; then
213219
getDwStartingTime $i $namespace &
214220
succeeded=$((succeeded + 1))

0 commit comments

Comments
 (0)