Skip to content

Conversation

@onematchfox
Copy link
Contributor

Another artifact of #1133. No need for the sqlite volume+mount when database is set to postgres.

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 fixes a cleanup issue from #1133 by conditionally rendering the SQLite volume and volume mount only when the database type is set to sqlite. When using postgres, these resources are no longer created, reducing unnecessary resource definitions in the Kubernetes deployment.

Key Changes

  • Added conditional logic to render volumes and volumeMounts blocks only when needed (when database type is sqlite OR when custom volumes/volumeMounts are provided)
  • Added a new test case to verify sqlite volume/mount exclusion when using postgres with extra volumes
  • Fixed comment formatting/indentation in values.yaml for consistency

Reviewed changes

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

File Description
helm/kagent/values.yaml Updated comment indentation for volumes and volumeMounts example documentation
helm/kagent/templates/controller-deployment.yaml Added conditionals to only render volumes and volumeMounts blocks when database type is sqlite or when custom volumes are provided
helm/kagent/tests/controller-deployment_test.yaml Added test case to verify sqlite volume/mount are not rendered when using postgres with extra volumes

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

@onematchfox onematchfox force-pushed the postgres-no-sqlite-volume branch 2 times, most recently from 2e7f055 to 359326c Compare November 26, 2025 15:00
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
@onematchfox onematchfox force-pushed the postgres-no-sqlite-volume branch from 359326c to 2ddb346 Compare December 2, 2025 07:52
@EItanya EItanya merged commit 00c8562 into kagent-dev:main Dec 2, 2025
17 checks passed
@onematchfox onematchfox deleted the postgres-no-sqlite-volume branch December 2, 2025 15:01
GTRekter pushed a commit to GTRekter/kagent that referenced this pull request Dec 4, 2025
…-dev#1140)

Another artifact of kagent-dev#1133. No need for the sqlite volume+mount when
database is set to postgres.

Signed-off-by: Brian Fox <878612+onematchfox@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