feat: expose reuseConnection on active health checks #9741
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 247 lines diff across 3 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.330
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9741"
general
weight: 0.35
vishals-3
Fixes #9694
What this does
Envoy's
HealthChecksupports areuse_connectionfield that controls whether the connection used for active health-check probes is reused across probes. Envoy Gateway never exposed it, so it was pinned to Envoy's default oftrue. This adds areuseConnectionfield to the active health-check configuration.Setting
reuseConnection: falsemakes Envoy open a fresh connection for each probe — required to interoperate with backends (such as haproxy-style agent checks) that don't expect a reused connection.Design
The field is added to the
ActiveHealthChecktype and flows through the standard pipeline:api/v1alpha1/healthcheck_types.go:ReuseConnection boolinternal/ir/xds.go:ReuseConnection boolonActiveHealthCheckinternal/gatewayapi/clustersettings.go(buildActiveHealthCheck)internal/xds/translator/cluster.go(buildXdsHealthCheck) setshc.ReuseConnectionWhen unset, Envoy's default (
true) is preserved.Testing
Generated code (deepcopy, CRDs, API reference docs) was regenerated with the repo's own tooling (
controller-gen,crd-ref-docs).health-check-host-hierarchygolden (assertsreuseConnection: falsein the rendered Envoy health check)backendtrafficpolicy-with-healthcheckfixture to exercise the API→IR conversionTestBuildXdsHealthCheckReuseConnectioncovering unset / true / false---
This PR was authored with the assistance of Claude, an AI assistant.
🤖 Generated with Claude Code