Skip to content

Commit

Permalink
Merge pull request #2274 from kinvolk/invidian/fix-linux-bootstrap-ex…
Browse files Browse the repository at this point in the history
…tension-command-with-bash

azure: fix bootstrap extension command error path for bash
  • Loading branch information
k8s-ci-robot authored May 2, 2022
2 parents aea974d + 7b5b92f commit 9c74c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const (

var (
// LinuxBootstrapExtensionCommand is the command the VM bootstrap extension will execute to verify Linux nodes bootstrap completes successfully.
LinuxBootstrapExtensionCommand = fmt.Sprintf("for i in $(seq 1 %d); do test -f %s && break; if [ $i -eq %d ]; then return 1; else sleep %d; fi; done", bootstrapExtensionRetries, bootstrapSentinelFile, bootstrapExtensionRetries, bootstrapExtensionSleep)
LinuxBootstrapExtensionCommand = fmt.Sprintf("for i in $(seq 1 %d); do test -f %s && break; if [ $i -eq %d ]; then exit 1; else sleep %d; fi; done", bootstrapExtensionRetries, bootstrapSentinelFile, bootstrapExtensionRetries, bootstrapExtensionSleep)
// WindowsBootstrapExtensionCommand is the command the VM bootstrap extension will execute to verify Windows nodes bootstrap completes successfully.
WindowsBootstrapExtensionCommand = fmt.Sprintf("powershell.exe -Command \"for ($i = 0; $i -lt %d; $i++) {if (Test-Path '%s') {exit 0} else {Start-Sleep -Seconds %d}} exit -2\"",
bootstrapExtensionRetries, bootstrapSentinelFile, bootstrapExtensionSleep)
Expand Down

0 comments on commit 9c74c71

Please sign in to comment.