Commit def0459
committed
feat: Add istio profile for E2E testing framework
This PR implements the Istio profile for the E2E testing framework as requested in issue vllm-project#656.
## What Changed
### Core Implementation (Issue vllm-project#656 Requirements)
- **New Istio Profile** (`e2e/profiles/istio/`)
- Implements 5-stage deployment: Istio control plane, namespace configuration,
Semantic Router with sidecar injection, Istio Gateway/VirtualService/DestinationRule,
and environment verification
- Robust error handling with panic recovery and defer-based cleanup
- Configurable Istio version via `ISTIO_VERSION` environment variable (default: 1.28.0)
- Comprehensive service health verification with 60-second stabilization period
- **4 Istio-Specific Test Cases** (100% passing)
1. `istio-sidecar-health-check` - Verify Envoy sidecar injection and health
2. `istio-traffic-routing` - Test routing through Istio ingress gateway
3. `istio-mtls-verification` - Verify mutual TLS configuration and certificates
4. `istio-tracing-observability` - Validate distributed tracing and metrics
- **Integration & Documentation**
- Registered profile in `e2e/cmd/e2e/main.go`
- Added comprehensive documentation to `e2e/README.md`
- Integrated into CI matrix (`.github/workflows/integration-test-k8s.yml`)
- Updated Make targets help text (`tools/make/e2e.mk`)
### Out-of-Scope Changes (Justified)
#### Helper Function Enhancement (`e2e/pkg/helpers/kubernetes.go`)
- **Change**: Added `GetServiceByLabelInNamespace()` with backward-compatible wrapper
- **Why**: Original `GetEnvoyServiceName()` was hardcoded to `"envoy-gateway-system"`,
preventing reuse for Istio which uses `"istio-system"` namespace
- **Approach**: Backward-compatible wrapper pattern
- Old function `GetEnvoyServiceName(ctx, client, labelSelector, verbose)` still works
- Calls new generic function `GetServiceByLabelInNamespace()` with hardcoded namespace
- Istio uses the new flexible function directly
- **Impact**:
- **ZERO changes** to existing profiles (ai-gateway, aibrix, dynamic-config)
- Makes helper function generic and reusable for future profiles
- Marked old function as deprecated for future cleanup
- **Safety**: Existing profiles continue to work unchanged, Istio gets flexibility it needs
## Test Coverage
This PR implements the **4 Istio-specific tests** required by issue vllm-project#656:
- ✅ Basic health check with Istio sidecar
- ✅ Traffic routing through Istio gateway
- ✅ mTLS verification
- ✅ Request tracing and observability
**Test Results**: 4/4 passing (100%)
**Note on Signal-Decision Engine Tests**:
Signal-decision engine tests (introduced in PR vllm-project#695) are intentionally excluded
to maintain focus on Istio integration validation. These tests validate semantic
router logic (already covered by ai-gateway, aibrix, and dynamic-config profiles)
rather than Istio mesh functionality. Following the established pattern where
PR vllm-project#695 retroactively added signal-decision tests to existing profiles, these
can be added to the Istio profile in a follow-up PR.
**Note on Kubernetes Version**:
CI uses Kind v0.22.0 which defaults to Kubernetes 1.29.2, meeting Istio 1.28+
compatibility requirements without requiring explicit version pinning.
## Implementation Highlights
- 5-stage deployment with comprehensive error handling
- Panic recovery with defer-based cleanup
- Service health verification before tests (prevents 503 errors)
- 60-second stabilization period for mesh readiness
- Complete Istio resource cleanup in teardown
- All Kubernetes resources properly namespaced
- Configurable Istio version for testing flexibility
## Testing Done
✅ All 4 Istio test cases pass successfully
✅ Verified cluster lifecycle management (create/cleanup)
✅ Confirmed Istio sidecar injection and health
✅ Validated traffic routing through Istio gateway
✅ Verified mTLS configuration and certificates
✅ Confirmed distributed tracing headers and metrics
✅ Tested with Istio 1.28.0 and CI's default Kubernetes version
## Makefile Targets
```bash
make e2e-test E2E_PROFILE=istio # Run all Istio tests
make e2e-test E2E_PROFILE=istio E2E_VERBOSE=1 # Run with verbose output
ISTIO_VERSION=1.28.0 make e2e-test E2E_PROFILE=istio # Custom Istio version
```
Resolves vllm-project#656
Signed-off-by: Asaad Balum <[email protected]>1 parent c3ce62e commit def0459
File tree
11 files changed
+1494
-10
lines changed- .github/workflows
- e2e
- cmd/e2e
- pkg/helpers
- profiles/istio
- testcases
- tools/make
11 files changed
+1494
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | | - | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
56 | | - | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
0 commit comments