feat(agentgateway-bootstrap): provision CNPG Postgres for cost tracking - #305
Merged
Andy Lo-A-Foe (loafoe) merged 1 commit intoJul 23, 2026
Merged
Conversation
agentgateway's request-logging database (powers its cost dashboard and Analytics UI) needs a single database.url connection string in its static config file, with no env-var or secret-ref support of any kind (confirmed by reading agentgateway's own Rust source and JSON schema). Provisions a plain CNPG Cluster directly (no Crossplane composite, no external-secrets dependency, no helm lookup). Deliberately leaves bootstrap.initdb.secret unset so CNPG generates its own <name>-app Secret, which already includes a combined uri key in postgresql://user:pass@host:port/dbname format (confirmed via CNPG's own source, pkg/specs/secrets.go). A follow-up task adds a Job that reads that key and patches it into AgentgatewayParameters once the Secret exists - out of scope for this change.
Andy Lo-A-Foe (loafoe)
deleted the
feat/agentgateway-bootstrap-postgres-cluster
branch
July 23, 2026 13:34
3 tasks
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
Adds a plain CNPG
Clusterresource (no Crossplane, no external-secrets, nohelm lookup) for agentgateway's request-logging database, which powers its cost dashboardand Analytics UI.
bootstrap.initdb.secretis deliberately left unset so CNPGgenerates its own
<name>-appSecret, which already includes a combinedurikeyusable directly as agentgateway's
database.url.Wiring that
urivalue intoAgentgatewayParameters.spec.rawConfig.database.url(astatic-only field with no secret-ref mechanism) requires a step that runs after the
Secret exists — a follow-up PR adds a Job for that. This PR is just the
Clusterresource and its values.
Test plan