mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-13 21:09:31 +00:00
Merge pull request #10316 from microsoft/danmihai1/k8s-inotify
tests: k8s-inotify: pod termination polling
This commit is contained in:
@@ -32,8 +32,10 @@ setup() {
|
|||||||
# Update configmap
|
# Update configmap
|
||||||
kubectl apply -f "${pod_config_dir}"/inotify-updated-configmap.yaml
|
kubectl apply -f "${pod_config_dir}"/inotify-updated-configmap.yaml
|
||||||
|
|
||||||
# Ideally we'd wait for the pod to complete...
|
# Wait for the pod to complete
|
||||||
sleep 120
|
command="kubectl describe pod ${pod_name} | grep \"State: \+Terminated\""
|
||||||
|
info "Waiting ${wait_time} seconds for: ${command}"
|
||||||
|
waitForProcess "${wait_time}" "$sleep_time" "${command}"
|
||||||
|
|
||||||
# Verify we saw the update
|
# Verify we saw the update
|
||||||
result=$(kubectl get pod "$pod_name" --output="jsonpath={.status.containerStatuses[]}")
|
result=$(kubectl get pod "$pod_name" --output="jsonpath={.status.containerStatuses[]}")
|
||||||
|
Reference in New Issue
Block a user