From 0a4f3f64a725318e3cca9064fc4f25917dc053c2 Mon Sep 17 00:00:00 2001 From: Peter Hornyack Date: Thu, 4 Jun 2020 17:39:33 -0700 Subject: [PATCH] Repair syntax error in Windows-GCE startup script --- cluster/gce/windows/k8s-node-setup.psm1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cluster/gce/windows/k8s-node-setup.psm1 b/cluster/gce/windows/k8s-node-setup.psm1 index eec86810c49..336958b9a83 100644 --- a/cluster/gce/windows/k8s-node-setup.psm1 +++ b/cluster/gce/windows/k8s-node-setup.psm1 @@ -1216,14 +1216,16 @@ function Verify-WorkerServices { Log_Todo "run more verification commands." } -# Downloads crictl.exe and installs it in $env:NODE_DIR. +# Downloads the Windows crictl package and installs its contents (e.g. +# crictl.exe) in $env:NODE_DIR. function DownloadAndInstall-Crictl { if (-not (ShouldWrite-File ${env:NODE_DIR}\crictl.exe)) { return } - $CRI_TOOLS_GCS_BUCKET = "k8s-artifacts-cri-tools" - $url = ('https://storage.googleapis.com/$CRI_TOOLS_GCS_BUCKET/release/' + - $CRICTL_VERSION + '/crictl-' + $CRICTL_VERSION + '-windows-amd64.tar.gz') + $CRI_TOOLS_GCS_BUCKET = 'k8s-artifacts-cri-tools' + $url = ('https://storage.googleapis.com/' + $CRI_TOOLS_GCS_BUCKET + + '/release/' + $CRICTL_VERSION + '/crictl-' + $CRICTL_VERSION + + '-windows-amd64.tar.gz') MustDownload-File ` -URLs $url ` -OutFile ${env:NODE_DIR}\crictl.tar.gz `