Skip to content

Commit 116465b

Browse files
committed
Add test cluster check when starting csi proxy
Add the check for test cluster when starting csi proxy
1 parent a640545 commit 116465b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,10 @@ function DownloadAndInstall-CSIProxyBinaries {
419419

420420
# TODO(jingxu97): Make csi-proxy.exe as a service similar to kubelet.exe
421421
function Start-CSIProxy {
422-
Log-Output 'Starting CSI Proxy'
423-
Start-Process "${env:NODE_DIR}\csi-proxy.exe"
422+
if (Test-IsTestCluster $kube_env) {
423+
Log-Output 'Starting CSI Proxy'
424+
Start-Process "${env:NODE_DIR}\csi-proxy.exe"
425+
}
424426
}
425427

426428
# TODO(pjh): this is copied from
@@ -929,7 +931,6 @@ function Configure-GcePdTools {
929931
'$modulePath = "K8S_DIR\GetGcePdName.dll"
930932
Unblock-File $modulePath
931933
Import-Module -Name $modulePath'.replace('K8S_DIR', ${env:K8S_DIR})
932-
933934
if (Test-IsTestCluster $kube_env) {
934935
if (ShouldWrite-File ${env:K8S_DIR}\diskutil.exe) {
935936
# The source code of this executable file is https://github.com/kubernetes-sigs/sig-windows-tools/blob/master/cmd/diskutil/diskutil.c

0 commit comments

Comments
 (0)