Skip to content

Commit f5a54e3

Browse files
authored
Merge pull request kubernetes#94671 from jingxu97/sep/csiproxybeta
Update csi-proxy to use beta version
2 parents 79cc8be + 555c8db commit f5a54e3

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

cluster/gce/config-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ export WINDOWS_INFRA_CONTAINER="gcr.io/gke-release/pause-win:1.2.1"
162162
# Storage Path for csi-proxy. csi-proxy only needs to be installed for Windows.
163163
export CSI_PROXY_STORAGE_PATH="https://storage.googleapis.com/gke-release/csi-proxy"
164164
# Version for csi-proxy
165-
export CSI_PROXY_VERSION="v0.1.0-gke.1"
165+
export CSI_PROXY_VERSION="v0.2.0-gke.0"

cluster/gce/windows/k8s-node-setup.psm1

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ function DownloadAndInstall-CSIProxyBinaries {
420420
function Start-CSIProxy {
421421
if (Test-IsTestCluster $kube_env) {
422422
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"
424425
& sc.exe failure csiproxy reset= 0 actions= restart/10000
425426
Log-Output "Starting CSI Proxy Service"
426427
& sc.exe start csiproxy
@@ -930,17 +931,9 @@ function Configure-GcePdTools {
930931
}
931932

932933
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})
944937
}
945938

946939
# Setup cni network. This function supports both Docker and containerd.

0 commit comments

Comments
 (0)