Skip to content

Commit

Permalink
PAth adjusted so that support files are found
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-kiefer committed Nov 20, 2023
1 parent 9d7aac6 commit b4aa972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testdata/00-Scripts/Initialize-Testset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ try


kubectl create configmap test-data-config-map --from-file $DBScriptPath | Out-Null
$jobName = (kubectl apply -f apply_to_cluster.yaml -o 'template={{.metadata.name}}')
$jobName = (kubectl apply -f $PSScriptRoot\apply_to_cluster.yaml -o 'template={{.metadata.name}}')
try
{
if (kubectl wait job $jobName --for 'condition=complete' --timeout=60s)
if (kubectl wait job $jobName --for 'condition=complete' --timeout=120s)
{
kubectl logs --all-containers --prefix --selector "job-name=$jobName" --tail=-1 | Write-Error
throw "Job did not complete in 30 seconds"
throw "Job did not complete in 120 seconds"
}
kubectl logs --all-containers --prefix --selector job-name=$jobName | Out-Host
}
Expand Down

0 comments on commit b4aa972

Please sign in to comment.