Files
deprecated-helm-charts/test/helm-test-e2e.sh
T
Anirudh Ramanathan 8fe482e143 Add helm update deps step to CI (#1381)
* Update testing to install deps

* Add dep update step

* Addressed review comments
2017-06-30 09:32:41 +01:00

32 lines
846 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
# Install and initialize helm/tiller
HELM_URL=https://storage.googleapis.com/kubernetes-helm
HELM_TARBALL=helm-v2.4.2-linux-amd64.tar.gz
wget -q ${HELM_URL}/${HELM_TARBALL}
tar xzfv ${HELM_TARBALL}
# Clean up tarball
rm -f ${HELM_TARBALL}
# Housekeeping
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
linux-amd64/helm init --service-account tiller --upgrade
linux-amd64/helm repo add stable https://kubernetes-charts.storage.googleapis.com/
linux-amd64/helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
# Run test framework
pushd .
cd $GOPATH
go get github.com/ghodss/yaml
popd
go run /src/k8s.io/charts/test/helm-test/main.go