Commit 15f2f627 authored by Ian Baum's avatar Ian Baum

CI image doesn't have jq. We don't need it anyway

parent 1083faf2
......@@ -626,26 +626,8 @@ check_docs_internal_links:
echo "${name}"
}
function unicorn_ready() {
release=$(release_name)
unicorn=$(kubectl -n ${KUBE_NAMESPACE} get deployment -l app=unicorn,release=${release} -o json)
unicorn_status=$(echo ${unicorn} | jq 'has("items")')
if [ "${unicorn_status}" = "false" ]
then
return 1
fi
status=$(echo "${unicorn})" | jq '.["items"][0]["status"]')
replicas=$(echo "${status}" | jq -r '.["replicas"]')
ready_replicas=$(echo "${status}" | jq -r '.["readyReplicas"]')
if [ "${replicas}" = "${ready_replicas}" ]
then
return 0
fi
return 1
}
function wait_for_unicorn() {
while ! unicorn_ready
while ! kubectl -n ${KUBE_NAMESPACE} rollout-status deployment/$(release_name)-unicorn
do
echo "Waiting for unicorn to be ready"
sleep 5
......
Markdown is supported
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