Skip to content

Commit aa2cf85

Browse files
committed
address comment.
Signed-off-by: Morven Cao <lcao@redhat.com>
1 parent 74eb155 commit aa2cf85

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/setup/deploy_server.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,13 @@ helm upgrade --install maestro-server \
218218
--wait \
219219
--timeout 5m
220220

221-
kubectl rollout restart deploy/maestro -n ${namespace}
222-
kubectl rollout status deploy/maestro --timeout=300s -n ${namespace}
221+
if [ "$msg_broker" = "pubsub" ]; then
222+
# restart to ensure maestro server starting subscriptions after pubsub-init post-hook completes
223+
kubectl rollout restart deploy/maestro -n ${namespace}
224+
kubectl rollout status deploy/maestro --timeout=300s -n ${namespace}
225+
else
226+
kubectl wait deploy/maestro -n ${namespace} --for condition=Available=True --timeout=300s
227+
fi
223228

224229
# TODO use maestro service health check to ensure the service ready
225230
sleep 30 # wait 30 seconds for the service ready

0 commit comments

Comments
 (0)