Skip to content

fix(agentgateway-bootstrap): nest database.url under rawConfig.config#308

Merged
Andy Lo-A-Foe (loafoe) merged 1 commit into
mainfrom
fix/agentgateway-bootstrap-rawconfig-nesting
Jul 23, 2026
Merged

fix(agentgateway-bootstrap): nest database.url under rawConfig.config#308
Andy Lo-A-Foe (loafoe) merged 1 commit into
mainfrom
fix/agentgateway-bootstrap-rawconfig-nesting

Conversation

@loafoe

Copy link
Copy Markdown
Member

Summary

AgentgatewayParameters.spec.rawConfig merges at the top level of agentgateway's
config file (the LocalConfig type — fields config/binds/frontendPolicies/
policies/workloads/services/backends/routeGroups/llm/mcp), not at the
database-only RawConfig type directly. Chart versions ≤0.4.9 patched
rawConfig.database.url, which crashed every dataplane pod on config 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 a sibling key.

Test plan

  • helm template shows the corrected rawConfig.config.database.url nesting in the patch payload
  • helm lint passes
  • Confirmed live on dip-ce-k3s-eu: dataplane pod recovers from CrashLoopBackOff, ConfigMap regenerates with config: database: url:, and a real LLM request is recorded in request_logs

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.
@loafoe
Andy Lo-A-Foe (loafoe) requested a review from a team as a code owner July 23, 2026 14:38
@loafoe
Andy Lo-A-Foe (loafoe) merged commit a5e33b4 into main Jul 23, 2026
5 checks passed
@loafoe
Andy Lo-A-Foe (loafoe) deleted the fix/agentgateway-bootstrap-rawconfig-nesting branch July 23, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant