ci: test with helm 3

pull/572/head
Thomas Gosteli 2021-01-05 12:54:17 +01:00
parent 1bb67d1d9a
commit 903265cc35
1 changed files with 1 additions and 9 deletions

View File

@ -53,19 +53,11 @@ main() {
docker cp "$KUBECONFIG" "$config_container_id:/root/.kube/config"
# Update in kubeconfig localhost to kind container IP
docker exec "$config_container_id" sed -i "s/localhost/$kind_container_ip/g" /root/.kube/config
echo "Add git remote k8s ${CHARTS_REPO}"
git remote add k8s "${CHARTS_REPO}" &> /dev/null || true
git fetch k8s master
echo
# Install Tiller with RABC
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 chart install test
docker exec "$config_container_id" ct install --config /workdir/.test/ct.yaml