|
@ -188,11 +188,11 @@ spec: |
|
|
# wait until validator generates priv/pub key pair |
|
|
# wait until validator generates priv/pub key pair |
|
|
set +e |
|
|
set +e |
|
|
|
|
|
|
|
|
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null |
|
|
|
|
|
|
|
|
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null |
|
|
ERR=$? |
|
|
ERR=$? |
|
|
while [ "$ERR" != 0 ]; do |
|
|
while [ "$ERR" != 0 ]; do |
|
|
sleep 5 |
|
|
sleep 5 |
|
|
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null |
|
|
|
|
|
|
|
|
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null |
|
|
ERR=$? |
|
|
ERR=$? |
|
|
done |
|
|
done |
|
|
set -e |
|
|
set -e |
|
@ -247,11 +247,11 @@ spec: |
|
|
# wait until pod starts to serve its pub_key |
|
|
# wait until pod starts to serve its pub_key |
|
|
set +e |
|
|
set +e |
|
|
|
|
|
|
|
|
curl -s "http://$pod.$fqdn_suffix/app_pub_key.json" > /dev/null |
|
|
|
|
|
|
|
|
curl -s --fail "http://$pod.$fqdn_suffix/app_pub_key.json" > /dev/null |
|
|
ERR=$? |
|
|
ERR=$? |
|
|
while [ "$ERR" != 0 ]; do |
|
|
while [ "$ERR" != 0 ]; do |
|
|
sleep 5 |
|
|
sleep 5 |
|
|
curl -s "http://$pod.$fqdn_suffix/app_pub_key.json" > /dev/null |
|
|
|
|
|
|
|
|
curl -s --fail "http://$pod.$fqdn_suffix/app_pub_key.json" > /dev/null |
|
|
ERR=$? |
|
|
ERR=$? |
|
|
done |
|
|
done |
|
|
set -e |
|
|
set -e |
|
|