fix: use correct namespace in k8s-deployment-control test
Namespace is now derived from stack name (laconic-test), not from
cluster-id (laconic-{cluster-id}). The kubectl pod query was using
the wrong namespace, returning empty results.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pull/739/head
parent
e9c9b3a301
commit
8b40c72330
|
|
@ -206,7 +206,8 @@ 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 -n laconic-${deployment_id} -l app=${deployment_id} -o=jsonpath='{.items..spec.nodeName}')
|
# Namespace is now derived from stack name, not cluster-id
|
||||||
|
deployment_node=$(kubectl get pods -n laconic-test -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue