-
Notifications
You must be signed in to change notification settings - Fork 371
Enable use of postgres in local development #1145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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-installtarget 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>
e3790ba to
03d2246
Compare
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
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>
Enables local testing using postgres as a backing store for controller.
Split out from #1133 (with added docs).