Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Schema
Commits
3633e54b
Commit
3633e54b
authored
Feb 20, 2022
by
Abhishek Patil
Browse files
Removing istio readiness check from script
parent
7d75421d
Pipeline
#95658
failed with stages
in 58 minutes and 24 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
deployments/scripts/azure/bootstrap.sh
View file @
3633e54b
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment