github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/hack/deploy-wait.sh (about)

     1  #!/bin/bash
     2  
     3  ATTEMPTS=0
     4  MAX_ATTEMPTS=72
     5  ready=false
     6  sleep_time=10
     7  
     8  until $ready || [ $ATTEMPTS -eq $MAX_ATTEMPTS ]
     9  do
    10      echo "running tests"
    11      if SUITE=./test/validation ./hack/run-e2e-conformance.sh; then
    12          echo "succeeded"
    13          ready=true
    14      else    
    15          echo "failed, retrying"
    16          sleep $sleep_time
    17      fi
    18      (( ATTEMPTS++ ))
    19  done
    20  
    21  if ! $ready; then 
    22      echo "Timed out waiting for features to be ready"
    23      oc get nodes
    24      exit 1
    25  fi