add unit tests and upgrade minikube, helm and k8s; set automountServiceAccountToken for 2.9.0 compatibility

This commit is contained in:
Cedric Meury
2018-04-28 00:19:01 +02:00
parent 2a1cdb0253
commit e4c016142d
3 changed files with 33 additions and 24 deletions
+2 -1
View File
@@ -32,9 +32,10 @@ function wait_deploy_ready() {
set -e
info "Using namespace: ${test_ns}"
info "Using Helm version: $(helm version --short --client | grep -o v.*$)"
$helm init --wait
$helm init --wait --override spec.template.spec.automountServiceAccountToken=true
$helmfile -v
$kubectl get namespace ${test_ns} &> /dev/null && warn "Namespace ${test_ns} exists, from a previous test run?"
$kubectl create namespace ${test_ns} || fail "Could not create namespace ${test_ns}"
trap "{ $kubectl delete namespace ${test_ns}; }" EXIT # remove namespace whenever we exit this script