From 6100836375fb22dd05f7dbeca33c9863dcade479 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Wed, 25 Sep 2019 12:55:21 -0300 Subject: [PATCH] Mount temporal directory volume for ingress controller --- build/run-in-docker.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/run-in-docker.sh b/build/run-in-docker.sh index 2632acd2a..379e1a147 100755 --- a/build/run-in-docker.sh +++ b/build/run-in-docker.sh @@ -22,11 +22,11 @@ set -o errexit set -o nounset set -o pipefail -# temporal directory for the fake SSL certificate -SSL_VOLUME=$(mktemp -d) +# temporal directory for the /etc/ingress-controller directory +INGRESS_VOLUME=$(mktemp -d) function cleanup { - rm -rf "${SSL_VOLUME}" + rm -rf "${INGRESS_VOLUME}" } trap cleanup EXIT @@ -58,7 +58,7 @@ docker run \ -v "${KUBE_ROOT}:/go/src/${PKG}" \ -v "${KUBE_ROOT}/bin/${ARCH}:/go/bin/linux_${ARCH}" \ -v "/var/run/docker.sock:/var/run/docker.sock" \ - -v "${SSL_VOLUME}:/etc/ingress-controller/ssl/" \ + -v "${INGRESS_VOLUME}:/etc/ingress-controller/" \ ${MINIKUBE_VOLUME} \ -w "/go/src/${PKG}" \ -u $(id -u ${USER}):$(id -g ${USER}) \