@@ -403,29 +403,26 @@ function DownloadAndInstall-KubernetesBinaries {
403
403
# Required ${kube_env} keys:
404
404
# CSI_PROXY_STORAGE_PATH and CSI_PROXY_VERSION
405
405
function DownloadAndInstall-CSIProxyBinaries {
406
- if (Test-IsTestCluster $kube_env ) {
407
- if (ShouldWrite- File ${env: NODE_DIR} \csi-proxy.exe ) {
408
- $tmp_dir = ' C:\k8s_tmp'
409
- New-Item - Force - ItemType ' directory' $tmp_dir | Out-Null
410
- $filename = ' csi-proxy.exe'
411
- $urls = " ${env: CSI_PROXY_STORAGE_PATH} /${env: CSI_PROXY_VERSION} /$filename "
412
- MustDownload- File - OutFile $tmp_dir \$filename - URLs $urls
413
- Move-Item - Force $tmp_dir \$filename ${env: NODE_DIR} \$filename
414
- # Clean up the temporary directory
415
- Remove-Item - Force - Recurse $tmp_dir
416
- }
406
+ if (ShouldWrite- File ${env: NODE_DIR} \csi-proxy.exe ) {
407
+ $tmp_dir = ' C:\k8s_tmp'
408
+ New-Item - Force - ItemType ' directory' $tmp_dir | Out-Null
409
+ $filename = ' csi-proxy.exe'
410
+ $urls = " ${env: CSI_PROXY_STORAGE_PATH} /${env: CSI_PROXY_VERSION} /$filename "
411
+ MustDownload- File - OutFile $tmp_dir \$filename - URLs $urls
412
+ Move-Item - Force $tmp_dir \$filename ${env: NODE_DIR} \$filename
413
+ # Clean up the temporary directory
414
+ Remove-Item - Force - Recurse $tmp_dir
417
415
}
418
416
}
419
417
420
418
function Start-CSIProxy {
421
- if (Test-IsTestCluster $kube_env ) {
422
- Log- Output " Creating CSI Proxy Service"
423
- $flags = " -windows-service -log_file=${env: LOGS_DIR} \csi-proxy.log -logtostderr=false"
424
- & sc.exe create csiproxy binPath= " ${env: NODE_DIR} \csi-proxy.exe $flags "
425
- & sc.exe failure csiproxy reset= 0 actions= restart/ 10000
426
- Log- Output " Starting CSI Proxy Service"
427
- & sc.exe start csiproxy
428
- }
419
+ Log- Output " Creating CSI Proxy Service"
420
+ $flags = " -windows-service -log_file=${env: LOGS_DIR} \csi-proxy.log -logtostderr=false"
421
+ & sc.exe create csiproxy binPath= " ${env: NODE_DIR} \csi-proxy.exe $flags "
422
+ & sc.exe failure csiproxy reset= 0 actions= restart/ 10000
423
+ Log- Output " Starting CSI Proxy Service"
424
+ & sc.exe start csiproxy
425
+
429
426
}
430
427
431
428
# TODO(pjh): this is copied from
0 commit comments