From 241cd75671963205457290d6f12afff952da0e74 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 10 Mar 2026 04:53:52 +0000 Subject: [PATCH] fix(test): use deployment namespace in k8s control test The deployment control test queries pods with raw kubectl but didn't specify the namespace. Since pods now live in laconic-{deployment_id} instead of default, the query returned empty results. Co-Authored-By: Claude Opus 4.6 --- tests/k8s-deployment-control/run-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/k8s-deployment-control/run-test.sh b/tests/k8s-deployment-control/run-test.sh index c6e43694..cecad44d 100755 --- a/tests/k8s-deployment-control/run-test.sh +++ b/tests/k8s-deployment-control/run-test.sh @@ -206,7 +206,7 @@ fi # The deployment's pod should be scheduled onto node: worker3 # Check that's what happened # Get get the node onto which the stack pod has been deployed -deployment_node=$(kubectl get pods -l app=${deployment_id} -o=jsonpath='{.items..spec.nodeName}') +deployment_node=$(kubectl get pods -n laconic-${deployment_id} -l app=${deployment_id} -o=jsonpath='{.items..spec.nodeName}') expected_node=${deployment_id}-worker3 echo "Stack pod deployed to node: ${deployment_node}" if [[ ${deployment_node} == ${expected_node} ]]; then