add tiller readiness check

pull/311/head
rimas 2018-11-23 13:53:53 +00:00
parent 505a801efb
commit 2afe180026
1 changed files with 5 additions and 2 deletions

View File

@ -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!"
}