ci: test with helm 3
parent
1bb67d1d9a
commit
903265cc35
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue