fix(agentgateway-bootstrap): nest database.url under rawConfig.config#308
Merged
Andy Lo-A-Foe (loafoe) merged 1 commit intoJul 23, 2026
Merged
Conversation
AgentgatewayParameters.spec.rawConfig merges at the top level of agentgateway's config file (LocalConfig - fields config/binds/ frontendPolicies/policies/workloads/services/backends/routeGroups/llm/ mcp), not at the RawConfig (database-only) type directly. The Job was patching rawConfig.database.url, which crashed every dataplane pod on reload: Error: database: unknown field `database`, expected one of `config`, `binds`, `frontendPolicies`, `policies`, `workloads`, `services`, `backends`, `routeGroups`, `llm`, `mcp` at line 1 column 11 Confirmed live on dip-ce-k3s-eu: moving the patch to rawConfig.config.database.url fixes the crash immediately, and a follow-up end-to-end test (a real request through /v1/chat/completions) was correctly recorded in the request_logs table. The patch also clears any stale top-level `database` key a chart version <=0.4.9 may have already written, since a merge patch alone won't remove it.
Andy Lo-A-Foe (loafoe)
deleted the
fix/agentgateway-bootstrap-rawconfig-nesting
branch
July 23, 2026 14:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AgentgatewayParameters.spec.rawConfigmerges at the top level of agentgateway'sconfig file (the
LocalConfigtype — fieldsconfig/binds/frontendPolicies/policies/workloads/services/backends/routeGroups/llm/mcp), not at thedatabase-only
RawConfigtype directly. Chart versions ≤0.4.9 patchedrawConfig.database.url, which crashed every dataplane pod on config reload:Confirmed live on
dip-ce-k3s-eu: moving the patch torawConfig.config.database.urlfixes the crash immediately, and a follow-up end-to-end test (a real request through
/v1/chat/completions) was correctly recorded in therequest_logstable.The patch also clears any stale top-level
databasekey a chart version ≤0.4.9 mayhave already written, since a merge patch alone won't remove a sibling key.
Test plan
rawConfig.config.database.urlnesting in the patch payloadconfig: database: url:, and a real LLM request is recorded inrequest_logs