Use bash ranges "{1..3}" instead of "$(seq 1 3)".

This commit is contained in:
Ryan Hitchman
2016-06-03 10:42:38 -07:00
parent 364f2da548
commit 5508e49ef5
10 changed files with 13 additions and 13 deletions

View File

@@ -230,7 +230,7 @@ $kubectl create -f bps-load-gen-rc.json --namespace=$NS
#This script assumes the cloud provider is able to create a load balancer. If this not the case, you may want to check out other ways to make the frontend service accessible from outside (https://github.com/kubernetes/kubernetes/blob/master/docs/services.md#external-services)
function getIP {
echo "Waiting up to 1 min for a public IP to be assigned by the cloud provider..."
for i in `seq 1 20`;
for i in {1..20};
do
PUBLIC_IP=$($kubectl get services/frontend --namespace=$NS -o template --template="{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}")
if [ -n "$PUBLIC_IP" ]; then
@@ -249,7 +249,7 @@ function pollfor {
pass_http=0
### Test HTTP Server comes up.
for i in `seq 1 150`;
for i in {1..150};
do
### Just testing that the front end comes up. Not sure how to test total entries etc... (yet)
echo "Trying curl ... $PUBLIC_IP:3000 , attempt $i . expect a few failures while pulling images... "

View File

@@ -267,7 +267,7 @@ function pollfor {
pass_http=0
### Test HTTP Server comes up.
for i in `seq 1 150`;
for i in {1..150};
do
### Just testing that the front end comes up. Not sure how to test total entries etc... (yet)
echo "Trying curl frontend:3000 via $TEST_IP:$NODE_PORT, attempt ${i}. Expect a few failures while pulling images... "

View File

@@ -233,7 +233,7 @@ function pollfor {
pass_http=0
### Test HTTP Server comes up.
for i in `seq 1 150`;
for i in {1..150};
do
### Just testing that the front end comes up. Not sure how to test total entries etc... (yet)
echo "Trying curl ... $PUBLIC_IP:3000 , attempt $i . expect a few failures while pulling images... "