Skip to content

Commit

Permalink
Clean up on apache#772
Browse files Browse the repository at this point in the history
  • Loading branch information
xurror committed Apr 19, 2020
1 parent 8b92b38 commit 59175f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion kubernetes/fineract-server-deployment.yml
Expand Up @@ -41,7 +41,6 @@ metadata:
name: fineract-server
labels:
app: fineract-server
tier: fineract-server
spec:
selector:
matchLabels:
Expand Down
12 changes: 6 additions & 6 deletions kubernetes/kubectl-startup.sh
Expand Up @@ -41,15 +41,15 @@ echo
echo "Starting fineract server..."
kubectl apply -f fineract-server-deployment.yml

fineract-server_pod=""
while [[ ${#fineract-server_pod} -eq 0 ]]; do
fineract-server_pod=$(kubectl get pods -l tier=fineract-server --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
fineract_server_pod=""
while [[ ${#fineract_server_pod} -eq 0 ]]; do
fineract_server_pod=$(kubectl get pods -l tier=backend --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
done

fineract-server_status=$(kubectl get pods ${fineract-server_pod} --no-headers -o custom-columns=":status.phase")
while [[ ${fineract-server_status} -ne 'Running' ]]; do
fineract_server_status=$(kubectl get pods ${fineract_server_pod} --no-headers -o custom-columns=":status.phase")
while [[ ${fineract_server_status} -ne 'Running' ]]; do
sleep 1
fineract-server_status=$(kubectl get pods ${fineract-server_pod} --no-headers -o custom-columns=":status.phase")
fineract_server_status=$(kubectl get pods ${fineract_server_pod} --no-headers -o custom-columns=":status.phase")
done

echo "Fineract server is up and running"

0 comments on commit 59175f6

Please sign in to comment.