From d64046df55843774e8d1670f3300409a41a4b29f Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 10 Mar 2026 05:24:00 +0000 Subject: [PATCH] Revert "fix(test): reuse kind cluster on stop/start cycle in deploy test" This reverts commit 35f179b755d8bad1fd60b8f859f06955d713748c. --- tests/k8s-deploy/run-deploy-test.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/k8s-deploy/run-deploy-test.sh b/tests/k8s-deploy/run-deploy-test.sh index 50d0907f..5cee371a 100755 --- a/tests/k8s-deploy/run-deploy-test.sh +++ b/tests/k8s-deploy/run-deploy-test.sh @@ -225,14 +225,12 @@ else delete_cluster_exit fi -# Stop then start again and check the volume was preserved. -# Use --skip-cluster-management to reuse the existing kind cluster instead of -# destroying and recreating it (which fails on some CI runners due to cgroups issues). -# Use --delete-volumes to clear PVs so fresh PVCs can bind on restart. -# Bind-mount data survives on the host filesystem; provisioner volumes are recreated fresh. -$TEST_TARGET_SO deployment --dir $test_deployment_dir stop --delete-volumes --skip-cluster-management -sleep 5 -$TEST_TARGET_SO deployment --dir $test_deployment_dir start --skip-cluster-management +# Stop then start again and check the volume was preserved +$TEST_TARGET_SO deployment --dir $test_deployment_dir stop +# Sleep a bit just in case +# sleep for longer to check if that's why the subsequent create cluster fails +sleep 20 +$TEST_TARGET_SO deployment --dir $test_deployment_dir start wait_for_pods_started wait_for_log_output sleep 1