Skip to content

Commit b1dff85

Browse files
committed
Add sleep between retires
1 parent 486d992 commit b1dff85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.ibm/pipelines/install-methods/operator.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ install_rhdh_operator() {
2424
echo "${output}"
2525
echo "RHDH Operator installed on attempt ${i}."
2626
break
27+
elif ((i < max_attempts)); then
28+
echo "Attempt ${i} failed, retrying in 10 seconds..."
29+
sleep 10
2730
elif ((i == max_attempts)); then
2831
echo "$output"
2932
echo "Failed install RHDH Operator after ${max_attempts} attempts."

0 commit comments

Comments
 (0)