Exports KUBE_TEMP for use in Vagrantfile

pull/6/head
Andy Lindeman 2017-01-30 21:52:19 -05:00
parent 1bbd9dfa11
commit afb5e8ceb7
No known key found for this signature in database
GPG Key ID: AB1CED47756930F7
1 changed files with 1 additions and 1 deletions

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
}