loadgenerator: check curl install (#153)

without &&, load generator startup was failing intermittently when it fails
to install curl from apk-add.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2019-02-18 15:54:01 -08:00 committed by GitHub
parent 1605c21f69
commit 3b4c04fe65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ spec:
initContainers: initContainers:
- name: wait-frontend - name: wait-frontend
image: alpine:3.6 image: alpine:3.6
command: ['sh', '-c', 'set -x; apk add --no-cache curl; command: ['sh', '-c', 'set -x; apk add --no-cache curl &&
until timeout -t 2 curl -f "http://${FRONTEND_ADDR}"; do until timeout -t 2 curl -f "http://${FRONTEND_ADDR}"; do
echo "waiting for http://${FRONTEND_ADDR}"; echo "waiting for http://${FRONTEND_ADDR}";
sleep 2; sleep 2;