github.com/nginxinc/kubernetes-ingress@v1.12.5/tests/ci-files/helm-http-test.sh (about) 1 #!/bin/bash 2 3 max_attempts=$1 4 port=$2 5 secure=$3 6 host="${4:-localhost}" 7 8 counter=0 9 until [ $(curl --write-out %{http_code} -ks --output /dev/null http${secure}://${host}:${port}) -eq 404 ]; do 10 if [ ${counter} -eq ${max_attempts} ]; then 11 exit 1 12 fi 13 printf '.'; counter=$(($counter+1)); sleep 5; 14 done