mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 11:36:56 +00:00
Merge pull request #9411 from microsoft/danmihai1/k8s-job
tests: k8s-job: wait for job successful create
This commit is contained in:
commit
80d926c357
@ -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}')
|
||||
|
Loading…
Reference in New Issue
Block a user