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 <noreply@anthropic.com>
feature/k8s-jobs
Prathamesh Musale 2026-03-10 04:53:52 +00:00
parent 183a188874
commit 241cd75671
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ fi
# The deployment's pod should be scheduled onto node: worker3 # The deployment's pod should be scheduled onto node: worker3
# Check that's what happened # Check that's what happened
# Get get the node onto which the stack pod has been deployed # 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 expected_node=${deployment_id}-worker3
echo "Stack pod deployed to node: ${deployment_node}" echo "Stack pod deployed to node: ${deployment_node}"
if [[ ${deployment_node} == ${expected_node} ]]; then if [[ ${deployment_node} == ${expected_node} ]]; then