Add Terraform configuration and upgrade helm version (#1194)
* Use terraform to manage ci cluster. Upgrade ci cluster to 1.13 * Upgrade helm version * Do not break the test if no previous resources * Do not skip install helm if helm is old version
This commit is contained in:
committed by
Ta-Ching Chen
parent
d578539391
commit
1c5fd92ad6
@@ -8,6 +8,7 @@ else
|
||||
K="kubectl --kubeconfig $KUBECONFIG --namespace default"
|
||||
if $K get configmap ok-to-destroy
|
||||
then
|
||||
set +e # do not break if crd not found
|
||||
$K delete functions --all
|
||||
$K delete environments --all
|
||||
$K delete httptriggers --all
|
||||
@@ -15,6 +16,7 @@ else
|
||||
$K delete messagequeuetriggers --all
|
||||
$K delete packages --all
|
||||
$K delete timetriggers --all
|
||||
set -e
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -14,9 +14,10 @@ then
|
||||
fi
|
||||
|
||||
# Get helm
|
||||
if [ ! -f $K8SCLI_DIR/helm ]
|
||||
HELM_VERSION=2.14.0
|
||||
if [ ! -f $K8SCLI_DIR/helm ] || (helm version --client | grep -v $HELM_VERSION)
|
||||
then
|
||||
curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.7.2-linux-amd64.tar.gz
|
||||
curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-linux-amd64.tar.gz
|
||||
tar xzvf helm-*.tar.gz
|
||||
mv linux-amd64/helm $K8SCLI_DIR/helm
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user