snigateway: kind-based e2e test #580
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 226 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.325
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #580"
general
weight: 0.35
justinsb
Description
Add a kind-based end-to-end test for
snigatewayintests/e2e/snigateway_test.goto test the full data path in a real cluster.Key updates:
TestSNIGatewayintests/e2e/snigateway_test.gocovering:- Generating CA,
snigateway.internalserver cert, and client cert viasnigateway/pkg/certs.- Building and kind-loading
images/snigatewayandimages/snigateway-frontend.- Deploying
snigateway-frontendinside the cluster as a Deployment + Service in its own namespace with certs in a Secret.- Deploying the
snigatewaycontroller withsnigateway/k8s/controller.yaml, mTLS client-cert Secret, and--frontendpointing to the in-cluster frontend Service.- Creating a GatewayClass for snigateway, a Gateway with HTTPS listener and TLS certificate Secret for
echo.snigateway.test, an HTTPRoute, and the toolbox backend.- Validating from a client pod that HTTPS requests to the frontend with SNI
echo.snigateway.testreach the backend with TLS terminated by GARI using the Gateway listener cert (and not the frontend internal cert).- Validating that unregistered SNI hostnames are rejected.
- Validating that dynamically adding a second HTTPS listener hostname (
echo2.snigateway.test) registers and routes without restarts.tests/e2e/harness.gofor test certificates, secret creation, and namespaced deployments/pods.tests/toolbox/main.goclient mode with flags for custom SNI, dial target override (--connect-to), TLS inspection, and expected rejection checking (--expect-fail).TestSNIGatewayintodev/tasks/test-e2e.apierrors.IsNotFoundforgari-proxyinGatewayReconcilerso controllers without a LoadBalancer service (such as snigateway) reconcile cleanly.Fixes #577