github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/config/scripts/check_verrazzano_ns_exists.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright (c) 2020, 2021, Oracle and/or its affiliates.
     4  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     5  #
     6  
     7  n=0
     8  while [[ "$n" -lt 30 ]] && [[ $(kubectl get ns $1 -o 'jsonpath={..status.phase}') != "Active" ]]
     9  do
    10     n=$(( n + 1 ))
    11     echo "waiting for namespace $1" && sleep 1
    12  done
    13