mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-10 07:05:51 +00:00
kata-deploy: tweak teardown options
Increase timeout for node wait condition to 300s, and add timeout for pod deletion. Signed-off-by: Zachary Spar <zspar@coreweave.com>
This commit is contained in:
committed by
Zachary Spar
parent
86656bfdfd
commit
bf131b2448
@@ -200,8 +200,8 @@ EOF
|
||||
echo "# Uninstall complete, verifying cleanup..." >&3
|
||||
|
||||
# Wait for node to recover — containerd restart during cleanup may
|
||||
# cause brief unavailability (especially on k3s/rke2).
|
||||
kubectl wait nodes --timeout=120s --all --for condition=Ready=True
|
||||
# cause brief unavailability (especially on k3s/rke2/microk8s).
|
||||
kubectl wait nodes --timeout=300s --all --for condition=Ready=True
|
||||
|
||||
# RuntimeClasses must be gone (filter out AKS-managed ones)
|
||||
local rc_count
|
||||
@@ -242,7 +242,7 @@ EOF
|
||||
|
||||
teardown() {
|
||||
if [[ "${BATS_TEST_NAME}" == *"restart"* ]]; then
|
||||
kubectl delete pod "${LIFECYCLE_POD_NAME}" --ignore-not-found=true --wait=false 2>/dev/null || true
|
||||
kubectl delete pod "${LIFECYCLE_POD_NAME}" --ignore-not-found=true --timeout=120s 2>/dev/null || true
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user