workflows: add error handling to e2e windows liveness probe

This commit is contained in:
David Weiße 2024-04-09 14:49:38 +02:00
parent cddbba1898
commit a02002075f

View File

@ -96,6 +96,13 @@ jobs:
$nodesOutput = & kubectl get nodes --kubeconfig "$PWD\constellation-admin.conf"
if (-not $?) {
Write-Host "Execution of command 'kubectl' failed with exit code: $LASTEXITCODE"
Write-Host "Retrying in $retryIntervalSeconds seconds..."
Start-Sleep -Seconds $retryIntervalSeconds
continue
}
$lines = $nodesOutput -split "`r?`n" | Select-Object -Skip 1
$allNodesReady = $true