mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #90618 from jingxu97/Mar/windows
Install diskutil into GCE windows node
This commit is contained in:
commit
2f883e5802
@ -892,6 +892,16 @@ function Configure-GcePdTools {
|
|||||||
'$modulePath = "K8S_DIR\GetGcePdName.dll"
|
'$modulePath = "K8S_DIR\GetGcePdName.dll"
|
||||||
Unblock-File $modulePath
|
Unblock-File $modulePath
|
||||||
Import-Module -Name $modulePath'.replace('K8S_DIR', ${env:K8S_DIR})
|
Import-Module -Name $modulePath'.replace('K8S_DIR', ${env:K8S_DIR})
|
||||||
|
|
||||||
|
if (Test-IsTestCluster $kube_env) {
|
||||||
|
if (ShouldWrite-File ${env:K8S_DIR}\diskutil.exe) {
|
||||||
|
# The source code of this executable file is https://github.com/kubernetes-sigs/sig-windows-tools/blob/master/cmd/diskutil/diskutil.c
|
||||||
|
MustDownload-File -OutFile ${env:K8S_DIR}\diskutil.exe `
|
||||||
|
-URLs "https://ddebroywin1.s3-us-west-2.amazonaws.com/diskutil.exe"
|
||||||
|
}
|
||||||
|
Copy-Item ${env:K8S_DIR}\diskutil.exe -Destination "C:\Windows\system32"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setup cni network. This function supports both Docker and containerd.
|
# Setup cni network. This function supports both Docker and containerd.
|
||||||
|
Loading…
Reference in New Issue
Block a user