Repository navigation
feat(helm): warn when routing through the legacy llm proxy - #134
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
> 🤖 **This text was AI-generated.** Show a deprecation note when the API does not get a Gateway URL from `aiGateway.useGateway`. Link to the Gateway setup guide and keep upgrades working when reused values do not contain an `aiGateway` map. Refs: SDK-916 Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ebbe6acee
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| @@ -0,0 +1,4 @@ | |||
| {{- if not (.Values.aiGateway | default dict).useGateway }} | |||
There was a problem hiding this comment.
Account for an explicit GATEWAY_URL override
When a deployment supplies GATEWAY_URL through the supported api.extraEnvVars setting, _api-deployment.tpl places it directly in every API container's env, where it overrides values from envFrom; the API therefore routes through that configured gateway even though aiGateway.useGateway is false. This condition nevertheless prints the warning that the deprecated legacy proxy is in use, so existing external/custom Gateway configurations receive a false migration warning. Detect a GATEWAY_URL entry in the shared API environment before warning, and cover that supported input in the new tests.
AGENTS.md reference: AGENTS.md:L7-L7
Useful? React with 👍 / 👎.
> 🤖 **This text was AI-generated.** Check the effective Gateway URL for every rendered API pool, including shared and pool-specific environment overrides. Warn if any pool still uses the legacy proxy. Refs SDK-916 Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds a legacy-proxy warning to Helm release notes.
Reviews (1) · Last reviewed commit: "fix(helm): respect custom gateway URLs i..." · Reviewed by Greptile |
Summary
SDK-916: warn self-hosted customers ahead of removing the legacy TS proxy. api-ts runs the legacy proxy whenever
GATEWAY_URLis unset in its environment.braintrust/templates/NOTES.txtprints a deprecation warning (linking to the Gateway setup docs) when any rendered API pool would lack a Gateway URL. It uses the same merged per-pool API config as the Deployment template, so aGATEWAY_URLset viaextraEnvVars(literal orvalueFrom) counts as configured, and an explicit empty value overrides the ConfigMap one.aiGateway.enabledalone does not affect it..Values.aiGateway.X) in the API configmap and gateway templates now go through(.Values.aiGateway | default dict), sohelm upgrade --reuse-valuesfrom a chart without theaiGatewaymap renders (and warns) instead of failing on a nil map.Non-breaking; intended for a 7.x minor. No
Chart.yamlbump (set at release).Input matrix
GATEWAY_URLin API podsuseGateway=true(enabledtrue or false)useGateway=false, Gateway deployed (enabled=true)useGatewaymissing/nullaiGatewaymap missing (--reuse-valuesfrom older chart)aiGatewaymissing; shared literalGATEWAY_URLinextraEnvVarsuseGateway=false; sharedGATEWAY_URLviavalueFrom.secretKeyRefuseGateway=false; only ingest/background pools setGATEWAY_URLuseGateway=false; a pool overrides the shared URL with""useGateway=true; shared explicit emptyGATEWAY_URLImage tags and cloud providers don't affect this logic; all clouds render via
./test.sh.braintrust/tests/notes_test.yamlcovers each row../test.sh: 684 helm-unittest tests pass, template rendering for all clouds and lint pass. Not tested against a live cluster.Link to Devin session: https://braintrust.devinenterprise.com/sessions/7ef375d6fbb44534a435a16019f47db8
Open in Devin Desktop: https://braintrust.devinenterprise.com/desktop/session/7ef375d6fbb44534a435a16019f47db8?variant=devin