Skip to content

Extend Helm chart with auto-migrate and extraVolumes options#147

Merged
krisztianfekete merged 1 commit into
mainfrom
feature/extend-helm-and-automigrate
May 14, 2026
Merged

Extend Helm chart with auto-migrate and extraVolumes options#147
krisztianfekete merged 1 commit into
mainfrom
feature/extend-helm-and-automigrate

Conversation

@krisztianfekete
Copy link
Copy Markdown
Contributor

This PR gates the existing startup migration call behind AGENTEVALS_AUTO_MIGRATE (default true, refuse-to-start when false and schema is behind) and adds extraVolumes / extraVolumeMounts pass-throughs to the Helm chart.

Copy link
Copy Markdown

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

Gates the startup auto-migration behind a new AGENTEVALS_AUTO_MIGRATE environment variable (default true). When disabled, the server verifies the schema is clean and up-to-date and refuses to start otherwise. Also extends the Helm chart with extraVolumes / extraVolumeMounts pass-throughs and an autoMigrate value.

Changes:

  • New _env_bool helper and gated migration path in lifespan, using migrator.status() + discover_migrations() to detect dirty/pending state.
  • Helm chart values.yaml exposes extraVolumes, extraVolumeMounts, and database.postgres.autoMigrate.
  • deployment.yaml merges extra volumes/mounts and sets AGENTEVALS_AUTO_MIGRATE env var.

Reviewed changes

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

File Description
src/agentevals/api/app.py Adds env-bool parsing and conditional migrate-vs-verify startup logic.
charts/agentevals/values.yaml Adds extraVolumes, extraVolumeMounts, and autoMigrate values with docs.
charts/agentevals/templates/deployment.yaml Renders extra volumes/mounts and the new env var.

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

@krisztianfekete krisztianfekete merged commit 4406260 into main May 14, 2026
9 checks passed
@krisztianfekete krisztianfekete deleted the feature/extend-helm-and-automigrate branch May 14, 2026 09:02
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