Commit 093e5a50 authored by Yu-Ju Hong's avatar Yu-Ju Hong

GCE/Windows: create a C:\tmp directory

This is required for running host path tests.
parent 7a449642
...@@ -250,11 +250,12 @@ function Disable-WindowsDefender { ...@@ -250,11 +250,12 @@ function Disable-WindowsDefender {
# Creates directories where other functions in this module will read and write # Creates directories where other functions in this module will read and write
# data. # data.
# Note: C:\tmp is required for running certain kubernetes tests.
function Create-Directories { function Create-Directories {
Log-Output "Creating ${env:K8S_DIR} and its subdirectories." Log-Output "Creating ${env:K8S_DIR} and its subdirectories."
ForEach ($dir in ("${env:K8S_DIR}", "${env:NODE_DIR}", "${env:LOGS_DIR}", ForEach ($dir in ("${env:K8S_DIR}", "${env:NODE_DIR}", "${env:LOGS_DIR}",
"${env:CNI_DIR}", "${env:CNI_CONFIG_DIR}", "${env:MANIFESTS_DIR}", "${env:CNI_DIR}", "${env:CNI_CONFIG_DIR}", "${env:MANIFESTS_DIR}",
"${env:PKI_DIR}")) { "${env:PKI_DIR}"), "C:\tmp") {
mkdir -Force $dir mkdir -Force $dir
} }
} }
......
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