Skip to content

Commit cfd65ad

Browse files
committed
Ensure featureService is started before spark
1 parent 6279004 commit cfd65ad

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

project-fortis-pipeline/ops/create-cluster.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,17 @@ EOF
220220
chown "${user_name}:${user_name}" "${backup_upgrade_script}"
221221
chmod +x "${backup_upgrade_script}"
222222

223+
while :; do
224+
services_pod="$(kubectl get po --selector='io.kompose.service=project-fortis-services' -o jsonpath='{.items[0].metadata.name}')"
225+
226+
if kubectl exec "${services_pod}" -- /usr/bin/wget -qO- "${feature_service_host}/features/name/paris" > /dev/null; do
227+
break
228+
else
229+
echo "featureService not yet available, waiting..."
230+
sleep 1m
231+
fi
232+
done
233+
223234
echo "Finished. Now installing Spark helm chart."
224235
./install-spark.sh \
225236
"${cassandra_ip}" \

0 commit comments

Comments
 (0)