Commit 98583ce
committed
fix(dynamo): reject non-vllm mocker at admission and fix review nits
Address Copilot review feedback on the Dynamo mocker E2E PR:
- Enforce the vLLM-only constraint for mocker mode at admission time in the
validating webhook, so a non-vllm `engine.type` combined with the
`airunway.ai/dynamo-test-backend=mocker` annotation is rejected up front
instead of being admitted and failing later during provider reconcile. Add a
webhook test covering the `sglang`-on-`dynamo` rejection.
- Fix stale comments in `buildAggregatedWorker`, `buildPrefillWorker`, and
`buildDecodeWorker`: mocker mode does not drop all GPU/CPU requests, it
replaces GPU resources with small CPU/memory requests+limits to keep the
worker Burstable rather than BestEffort.
- Rename the local `yaml` variable in `testCreateMockerModelDeployment` to
`manifest` to stop it shadowing the `sigs.k8s.io/yaml` package import.
- Drop the `-run TestDynamoMocker` filter from the `test-e2e-mocker` target so
`TestInjectMockerAnnotation` also runs in CI; the GPU lane self-skips without
`DYNAMO_INSTALLED`.
Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>1 parent 8efb684 commit 98583ce
5 files changed
Lines changed: 40 additions & 11 deletions
File tree
- controller/internal/webhook/v1alpha1
- providers/dynamo
- test/e2e
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
306 | 319 | | |
307 | 320 | | |
308 | 321 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
1449 | 1460 | | |
1450 | 1461 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
517 | 518 | | |
518 | 519 | | |
519 | 520 | | |
| |||
610 | 611 | | |
611 | 612 | | |
612 | 613 | | |
613 | | - | |
614 | | - | |
615 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
616 | 618 | | |
617 | 619 | | |
618 | 620 | | |
| |||
686 | 688 | | |
687 | 689 | | |
688 | 690 | | |
689 | | - | |
690 | | - | |
691 | | - | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
692 | 695 | | |
693 | 696 | | |
694 | 697 | | |
| |||
0 commit comments