mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 19:47:53 +00:00
Merge pull request #9179 from gkurz/fix-k8s-sandbox-vcpus-allocation-check
tests: k8s: Adapt k8s-sandbox-vcpus-allocation.bats to kubernetes v1.29
This commit is contained in:
commit
dc6bda19bf
@ -21,9 +21,11 @@ setup() {
|
||||
# Create the pods
|
||||
kubectl create -f "${pod_config_dir}/pod-sandbox-vcpus-allocation.yaml"
|
||||
|
||||
# Wait for completion
|
||||
kubectl wait --for=jsonpath='{.status.phase}'=Succeeded --timeout=$timeout pod --all
|
||||
|
||||
# Check the pods
|
||||
for i in {0..2}; do
|
||||
kubectl wait --for=jsonpath='{.status.conditions[0].reason}'=PodCompleted --timeout=$timeout pod ${pods[$i]}
|
||||
[ `kubectl logs ${pods[$i]}` -eq ${expected_vcpus[$i]} ]
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user