#!/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.7.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 $GOPATH/src/k8s.io/charts/test/helm-test/main.go

#!/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.7.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 $GOPATH/src/k8s.io/charts/test/helm-test/main.go

echo "#### Debugging ci-kubernetes-charts-gce ###"
kubectl get pvc --all-namespaces -o wide
kubectl get pv -o wide
echo "####"

Add debugging output to find PV errors in CI
Add debugging output to find PV errors in CI