From 6c5a3cec0cc905e4377e959df8a4cba2e88a8700 Mon Sep 17 00:00:00 2001 From: Samuel Lang Date: Fri, 14 Aug 2020 15:22:40 +0200 Subject: [PATCH] installing Kustomize in e2d if missing --- .circleci/config.yml | 2 +- test/e2e-skipper.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c98be8f10..09c6a5982 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -153,7 +153,7 @@ jobs: - run: test/e2e-kind.sh - run: test/e2e-skipper.sh - run: test/e2e-skipper-tests.sh - - run: test/e2e-nginx-cleanup.sh + - run: test/e2e-skipper-cleanup.sh push-helm-charts: docker: diff --git a/test/e2e-skipper.sh b/test/e2e-skipper.sh index 3bf88c317..5b6484ccb 100755 --- a/test/e2e-skipper.sh +++ b/test/e2e-skipper.sh @@ -12,6 +12,13 @@ echo '>>> Installing Skipper Ingress, Flagger and Prometheus' # https://github.com/kubernetes-sigs/kustomize/issues/2390 # Skipper will throw an Prometheus warning which can be ignored: # https://github.com/weaveworks/flagger/issues/664 + +# installing kustomize if not installed +if ! command -v kustomize &> /dev/null; then + echo "kustomize not found, installing" + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash +fi + kustomize build ${REPO_ROOT}/kustomize/skipper | kubectl apply -f - kubectl rollout status deployment/skipper-ingress -n kube-system