Merge pull request #9411 from microsoft/danmihai1/k8s-job

tests: k8s-job: wait for job successful create
This commit is contained in:
GabyCT 2024-04-04 15:14:56 -06:00 committed by GitHub
commit 80d926c357
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ setup() {
kubectl apply -f "${yaml_file}"
# Verify job
kubectl describe jobs/"$job_name" | grep "SuccessfulCreate"
waitForProcess "$wait_time" "$sleep_time" "kubectl describe job $job_name | grep SuccessfulCreate"
# List pods that belong to the job
pod_name=$(kubectl get pods --selector=job-name=$job_name --output=jsonpath='{.items[*].metadata.name}')