stack-orchestrator/tests/k8s-deployment-control
Prathamesh Musale 47043ec31e test(k8s-deployment-control): split cluster-id vs deployment-id
Same test-fixture fix as tests/k8s-deploy/run-deploy-test.sh: after
the cluster-id/deployment-id decouple, deployment.yml has two lines
instead of one, so \`cut -d ' ' -f 2\` yields a multi-value string.
The assignment to \$deployment_id then corrupted the kubectl label
selector — kubectl saw "a name AND a selector" and refused.

Split the extraction by field, with deployment-id falling back to
cluster-id when the field is absent (pre-decouple deployment.yml).
Use cluster-id for the kind worker node name; deployment-id for the
app= label selector.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 06:39:26 +00:00
..
run-test.sh test(k8s-deployment-control): split cluster-id vs deployment-id 2026-04-21 06:39:26 +00:00