-
Notifications
You must be signed in to change notification settings - Fork 3.3k
improvement(helm): support copilot-only deployments #3185
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR enables copilot-only deployments in the Helm chart by fixing several critical issues:
The changes follow established patterns from the main PostgreSQL setup and enable three deployment scenarios: standard (app+realtime), copilot-only, and full (all services). Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Helm as Helm Chart
participant Schema as JSON Schema
participant Ingress as Ingress Resources
participant Copilot as Copilot Server
participant Migrations as Migration Job
participant DB as PostgreSQL
Note over Helm,Schema: Copilot-Only Deployment Flow
Helm->>Schema: Validate configuration
Schema->>Schema: Check if app/realtime disabled
Schema->>Schema: Verify copilot enabled OR externalDatabase
Schema-->>Helm: Validation passes (copilot-only allowed)
Helm->>DB: Deploy StatefulSet
Note over DB: PGDATA=/var/lib/postgresql/data/pgdata
Note over DB: subPath mount: pgdata
DB->>DB: Initialize with correct data directory
Helm->>Migrations: Create migration job
Migrations->>DB: Wait for PostgreSQL (pg_isready)
Note over Migrations: Uses configured postgres:17-alpine image
DB-->>Migrations: Database ready
Migrations->>DB: Run migrations
Helm->>Ingress: Create ingress rules
Note over Ingress: Skip app rules (app.enabled=false)
Note over Ingress: Skip realtime rules (realtime.enabled=false)
Ingress->>Copilot: Route only copilot paths
Copilot->>DB: Connect to database
DB-->>Copilot: Connection established
|
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.
7 files reviewed, no comments
e571ed8 to
d4107da
Compare
|
@cursor review |
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.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Summary
Type of Change
Testing
Validated via helm template for standard, copilot-only, and full+copilot scenarios
Checklist