3 ##############################################################################
4 # Copyright (c) 2019 Huawei Tech and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
12 # To verify edgex platform deployment on k8s.
15 while [ $retrytimes -gt 0 ]
17 if [ 1 == "$(kubectl get pods | grep edgex-config-seed | grep -i completed | wc -l)" ]; then
23 [ $retrytimes -gt 0 ] || exit 1
25 # Reset the variable to check Running status of other edgex platform microservices
28 while [ $retrytimes -gt 0 ]
30 if [ 12 == "$(kubectl get pods | grep edgex | grep Running | wc -l)" ]; then
31 echo "Edgex Platform is successfully integrated on ELIOT IOT-Gateway!!!!"
37 [ $retrytimes -gt 0 ] || exit 1