Skip to content

Commit

Permalink
Merge pull request cert-manager#990 from munnerz/fix-minikube
Browse files Browse the repository at this point in the history
Fix up minikube e2e tests
  • Loading branch information
jetstack-bot authored Oct 23, 2018
2 parents 0d4c45d + 3c17240 commit 8c55361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ DOCKER_REPO :=
APP_VERSION := canary
HACK_DIR ?= hack

GINKGO_SKIP :=

## e2e test vars
KUBECONFIG ?= $$HOME/.kube/config

Expand Down Expand Up @@ -113,7 +115,8 @@ e2e_test:
--helm-binary-path=$$(bazel info bazel-genfiles)/hack/bin/helm \
--tiller-image-tag=$$($$(bazel info bazel-genfiles)/hack/bin/helm version --client --template '{{.Client.SemVer}}') \
--repo-root="$$(pwd)" \
--report-dir="$${ARTIFACTS:-./_artifacts}"
--report-dir="$${ARTIFACTS:-./_artifacts}" \
--ginkgo.skip="$(GINKGO_SKIP)"

# Generate targets
##################
Expand Down
18 changes: 2 additions & 16 deletions hack/ci/run-e2e-minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,6 @@ echo "Waiting for minikube cluster to be ready..."

while true; do if kubectl get nodes; then break; fi; echo "Waiting 5s for kubernetes to be ready..."; sleep 5; done

# Install tiller with admin permissions
kubectl create serviceaccount -n kube-system tiller
# Bind the tiller service account to the cluster-admin role
kubectl create clusterrolebinding tiller-binding --clusterrole=cluster-admin --serviceaccount kube-system:tiller
# Deploy tiller
helm init --service-account tiller --wait

echo "Exposing nginx-ingress service with a stable IP (10.0.0.15)"
# Setup service for nginx ingress controller. A DNS entry for *.certmanager.kubernetes.network has been setup to point to 10.0.0.15 for e2e tests
while true; do if kubectl get rc nginx-ingress-controller -n kube-system; then break; fi; echo "Waiting 5s for nginx-ingress-controller rc to be installed..."; sleep 5; done
kubectl expose -n kube-system --port 80 --target-port 80 --type ClusterIP rc nginx-ingress-controller --cluster-ip 10.0.0.15

echo "Waiting for Tiller to be ready..."
while true; do if timeout 5 helm version; then break; fi; echo "Waiting 5s for tiller to be ready..."; sleep 5; done

echo "Running e2e tests"
make e2e_test E2E_NGINX_CERTIFICATE_DOMAIN=certmanager.kubernetes.network
# Skip RBAC tests as they do not pass on Kubernetes <1.9
make e2e_test GINKGO_SKIP="RBAC"

0 comments on commit 8c55361

Please sign in to comment.