fix: Put KubeletExtraArgs in double quotes for Windows (#1082)

This commit is contained in:
Yves-Olivier Laroche
2021-09-03 09:37:00 +01:00
committed by GitHub
parent c2bd137152
commit 7f3b695ef1

View File

@@ -4,7 +4,7 @@ ${pre_userdata}
[string]$EKSBinDir = "$env:ProgramFiles\Amazon\EKS"
[string]$EKSBootstrapScriptName = 'Start-EKSBootstrap.ps1'
[string]$EKSBootstrapScriptFile = "$EKSBinDir\$EKSBootstrapScriptName"
& $EKSBootstrapScriptFile -EKSClusterName ${cluster_name} -KubeletExtraArgs '${kubelet_extra_args}' 3>&1 4>&1 5>&1 6>&1
& $EKSBootstrapScriptFile -EKSClusterName ${cluster_name} -KubeletExtraArgs "${kubelet_extra_args}" 3>&1 4>&1 5>&1 6>&1
$LastError = if ($?) { 0 } else { $Error[0].Exception.HResult }
${additional_userdata}