Commit 2dc1586f authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #40719 from alindeman/kube-temp-exported

Automatic merge from submit-queue (batch tested with PRs 39169, 40719, 38954, 40808, 40689) Exports KUBE_TEMP for use in Vagrantfile In #40147, the logic for setting `KUBE_TEMP` was refactored into `common.sh`. However, it was overlooked that `KUBE_TEMP` [needs to be exported for vagrant to work properly](https://github.com/kubernetes/kubernetes/pull/40147/files#diff-b19d3d93456020e2168c7f304f722969). This PR restores the `export` so that `Vagrantfile` can use `ENV["KUBE_TEMP"]` properly. 👀 @rthallisey @shyamjvs @timothysc
parents 1a95922b afb5e8ce
......@@ -314,7 +314,7 @@ function load-or-gen-kube-bearertoken() {
# KUBE_TEMP
function ensure-temp-dir {
if [[ -z ${KUBE_TEMP-} ]]; then
KUBE_TEMP=$(mktemp -d -t kubernetes.XXXXXX)
export KUBE_TEMP=$(mktemp -d -t kubernetes.XXXXXX)
trap 'rm -rf "${KUBE_TEMP}"' EXIT
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment