From 2afe18002684d741d425291719a0b792c5539031 Mon Sep 17 00:00:00 2001 From: rimas Date: Fri, 23 Nov 2018 13:53:53 +0000 Subject: [PATCH] add tiller readiness check --- .test/e2e-kind.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.test/e2e-kind.sh b/.test/e2e-kind.sh index d437f738..2eb455da 100755 --- a/.test/e2e-kind.sh +++ b/.test/e2e-kind.sh @@ -63,9 +63,12 @@ main() { kubectl -n kube-system create sa tiller kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller docker exec "$config_container_id" helm init --service-account tiller + echo "Wait for Tiller to be up and ready..." + until kubectl -n kube-system get pods 2>&1 | grep -w "tiller-deploy" | grep -w "1/1"; do sleep 1; done + echo - # Run install test - docker exec "$config_container_id" helm init --service-account tiller && ct install --config /workdir/.test/ct.yaml + # Run chart install test + docker exec "$config_container_id" ct install --config /workdir/.test/ct.yaml echo "Done Testing!" }