File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -892,6 +892,16 @@ function Configure-GcePdTools {
892
892
' $modulePath = "K8S_DIR\GetGcePdName.dll"
893
893
Unblock-File $modulePath
894
894
Import-Module -Name $modulePath' .replace(' K8S_DIR' , ${env: K8S_DIR} )
895
+
896
+ if (Test-IsTestCluster $kube_env ) {
897
+ if (ShouldWrite- File ${env: K8S_DIR} \diskutil.exe ) {
898
+ # The source code of this executable file is https://github.com/kubernetes-sigs/sig-windows-tools/blob/master/cmd/diskutil/diskutil.c
899
+ MustDownload- File - OutFile ${env: K8S_DIR} \diskutil.exe `
900
+ - URLs " https://ddebroywin1.s3-us-west-2.amazonaws.com/diskutil.exe"
901
+ }
902
+ Copy-Item ${env: K8S_DIR} \diskutil.exe - Destination " C:\Windows\system32"
903
+ }
904
+
895
905
}
896
906
897
907
# Setup cni network. This function supports both Docker and containerd.
You can’t perform that action at this time.
0 commit comments