@@ -420,7 +420,8 @@ function DownloadAndInstall-CSIProxyBinaries {
420
420
function Start-CSIProxy {
421
421
if (Test-IsTestCluster $kube_env ) {
422
422
Log- Output " Creating CSI Proxy Service"
423
- & sc.exe create csiproxy binPath= " ${env: NODE_DIR} \csi-proxy.exe --windows-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 "
424
425
& sc.exe failure csiproxy reset= 0 actions= restart/ 10000
425
426
Log- Output " Starting CSI Proxy Service"
426
427
& sc.exe start csiproxy
@@ -930,17 +931,9 @@ function Configure-GcePdTools {
930
931
}
931
932
932
933
Add-Content $PsHome \profile.ps1 `
933
- ' $modulePath = "K8S_DIR\GetGcePdName.dll"
934
- Unblock-File $modulePath
935
- Import-Module -Name $modulePath' .replace(' K8S_DIR' , ${env: K8S_DIR} )
936
- if (Test-IsTestCluster $kube_env ) {
937
- if (ShouldWrite- File ${env: K8S_DIR} \diskutil.exe ) {
938
- # The source code of this executable file is https://github.com/kubernetes-sigs/sig-windows-tools/blob/master/cmd/diskutil/diskutil.c
939
- MustDownload- File - OutFile ${env: K8S_DIR} \diskutil.exe `
940
- - URLs " https://ddebroywin1.s3-us-west-2.amazonaws.com/diskutil.exe"
941
- }
942
- Copy-Item ${env: K8S_DIR} \diskutil.exe - Destination " C:\Windows\system32"
943
- }
934
+ ' $modulePath = "K8S_DIR\GetGcePdName.dll"
935
+ Unblock-File $modulePath
936
+ Import-Module -Name $modulePath' .replace(' K8S_DIR' , ${env: K8S_DIR} )
944
937
}
945
938
946
939
# Setup cni network. This function supports both Docker and containerd.
0 commit comments