feat(cli): refuse listener flags where placement cannot apply

This commit is contained in:
Hugo Durand
2026-09-22 14:44:39 -04:00
parent 16bc576b1b
commit b809832ea3
3 changed files with 46 additions and 3 deletions
@@ -740,6 +740,16 @@ class TestSelectSource:
"--image cannot be combined with --remote builds.",
id="image_with_remote",
),
pytest.param(
{"placement": RequestedPlacement(listener_id="listener-1")},
"only apply when creating a deployment with --push-to",
id="listener_without_push_to",
),
pytest.param(
{"placement": RequestedPlacement(k8s_namespace="agents")},
"only apply when creating a deployment with --push-to",
id="namespace_without_push_to",
),
],
)
def test_conflicting_flags_are_rejected(self, monkeypatch, flags, message):