Use kind kubeconfig

This commit is contained in:
stefanprodan
2019-02-24 02:35:36 +02:00
parent 87b9fa8ca7
commit 0856e13ee6
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ jobs:
steps:
- checkout
- run: test/e2e-prerequisites.sh
- run: test/e2e-kind.sh
- run: test/e2e-tests.sh
workflows:
version: 2
+4
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -o errexit
REPO_ROOT=$(git rev-parse --show-toplevel)
echo ">>> Installing kubectl"
@@ -18,6 +20,8 @@ chmod +x kind
sudo mv kind /usr/local/bin/
kind create cluster --wait 5m
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
echo ">>> Installing helm"
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
+4 -4
View File
@@ -4,11 +4,9 @@ set -o errexit
ISTIO_VER="1.1.0-rc.0"
REPO_ROOT=$(git rev-parse --show-toplevel)
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
echo ">>> Starting e2e testing using Istio ${ISTIO_VER}"
export KUBECONFIG="$(kind get kubeconfig-path)"
kubectl version
helm repo add istio.io https://storage.googleapis.com/istio-release/releases/${ISTIO_VER}/charts
echo '>>> Installing Istio CRDs'
@@ -23,8 +21,10 @@ helm upgrade -i istio istio.io/istio --wait --namespace istio-system -f ${REPO_R
export KUBECONFIG="$(kind get kubeconfig-path)"
echo '>>> Installing Flagger'
echo '>>> Building Flagger'
cd ${REPO_ROOT} && docker build -t test/flagger:latest . -f Dockerfile
echo '>>> Installing Flagger'
kind load docker-image test/flagger:latest
kubectl apply -f ${REPO_ROOT}/artifacts/flagger/
kubectl -n istio-system set image deployment/flagger flagger=test/flagger:latest