Commit 3633e54b authored by Abhishek Patil's avatar Abhishek Patil
Browse files

Removing istio readiness check from script

parent 7d75421d
Pipeline #95658 failed with stages
in 58 minutes and 24 seconds
......@@ -2,40 +2,10 @@
cleanup() {
echo "Terminating istio sidecar"
curl -X POST "http://localhost:15020/quitquitquit"
exit
}
# Function to check istio sidecar readiness
checkIstioSidecarReadiness() {
echo "Wait for istio sidecar to be ready..."
max_retry_count=18
current_retry_count=0
sidecar_ready_status=0
while [ ${current_retry_count} -lt ${max_retry_count} ];
do
status_code=$(curl --write-out %{http_code} --silent --output /dev/null http://localhost:15021/healthz/ready)
if [[ "$status_code" -ne 200 ]] ; then
sleep 10s
echo "Istio sidecar not ready yet. Sleeping for 10s..."
else
sidecar_ready_status=1
break
fi
current_retry_count=$(expr $current_retry_count + 1)
done
if [[ ${sidecar_ready_status} -ne 1 ]]; then
echo "Timed out waiting for istio sidecar to be ready. Exiting..."
exit 1
fi
echo "Istio sidecar is ready..."
}
trap cleanup 0 1 2 3 6
checkIstioSidecarReadiness
trap cleanup EXIT
if [[ -z "${NAMESPACE}" ]]; then
NAMESPACE="osdu-azure"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment