Exports KUBE_TEMP for use in Vagrantfile

This commit is contained in:
Andy Lindeman
2017-01-30 21:52:19 -05:00
parent 1bbd9dfa11
commit afb5e8ceb7

View File

@@ -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
}