From 61c88eb72db747f62332ae07502444c60d194410 Mon Sep 17 00:00:00 2001 From: k8s-infra-cherrypick-robot <90416843+k8s-infra-cherrypick-robot@users.noreply.github.com> Date: Tue, 21 Jan 2025 23:32:37 -0800 Subject: [PATCH] Build: Always use local `tmp` dir on macOS. (#12741) Co-authored-by: Marco Ebert --- build/run-in-docker.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build/run-in-docker.sh b/build/run-in-docker.sh index 3f85159eb..b5e683f3d 100755 --- a/build/run-in-docker.sh +++ b/build/run-in-docker.sh @@ -26,14 +26,11 @@ set -o nounset set -o pipefail # temporal directory for the /etc/ingress-controller directory -if [[ "$OSTYPE" == darwin* ]] && [[ "$RUNTIME" == podman ]]; then +if [[ "$OSTYPE" == darwin* ]]; then mkdir -p "tmp" INGRESS_VOLUME=$(pwd)/$(mktemp -d tmp/XXXXXX) else INGRESS_VOLUME=$(mktemp -d) - if [[ "$OSTYPE" == darwin* ]]; then - INGRESS_VOLUME=/private$INGRESS_VOLUME - fi fi # make sure directory for SSL cert storage exists under ingress volume