Skip to content

Conversation

@onematchfox
Copy link
Contributor

Enables local testing using postgres as a backing store for controller.

Split out from #1133 (with added docs).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables PostgreSQL as an optional backing store for the kagent controller in local development environments. It adds a PostgreSQL deployment configuration, updates the Makefile to install it as part of the addon setup, and provides comprehensive documentation on how to use it.

Key Changes:

  • Adds PostgreSQL 18 Alpine deployment with ConfigMap, PVC, Deployment, and Service resources
  • Updates Makefile kagent-addon-install target to include postgres installation and readiness checks
  • Adds detailed documentation for postgres usage including configuration, verification, and rollback instructions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
contrib/addons/postgres.yaml New Kubernetes manifest defining PostgreSQL deployment, service, storage, and configuration for local development
Makefile Updates addon installation target to deploy postgres and wait for readiness; adds context flags to kubectl commands for consistency
DEVELOPMENT.md Adds comprehensive documentation for optional addons including postgres setup, usage examples, and instructions for switching between SQLite and PostgreSQL

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
@EItanya EItanya merged commit 693e3c7 into kagent-dev:main Dec 2, 2025
17 checks passed
@onematchfox onematchfox deleted the local-postgres branch December 2, 2025 15:01
GTRekter pushed a commit to GTRekter/kagent that referenced this pull request Dec 4, 2025
Enables local testing using postgres as a backing store for controller.

Split out from kagent-dev#1133 (with added docs).

---------

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Co-authored-by: Eitan Yarmush <eitan.yarmush@solo.io>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Ivan Porta <porta.ivan@outlook.com>
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.

2 participants