Skip to content

Commit

Permalink
Supporting SQLite and PostreSQL more deliberately
Browse files Browse the repository at this point in the history
For SQLite, we have to deploy the service as a `StatefulSet` with a bound
`PersistentVolume` holding the SQLite DB, whereas with PostgreSQL, we can
support deployments with multiple replicas.  In that case, we'll migrate with
a separate `Job` instead of attempting to migrate at server startup.
  • Loading branch information
chrisguidry committed Aug 1, 2024
1 parent 87dea62 commit daee741
Show file tree
Hide file tree
Showing 7 changed files with 589 additions and 387 deletions.
4 changes: 4 additions & 0 deletions crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spec:
spec:
type: object
properties:
version:
type: string
sqlite:
type: object
properties:
Expand Down Expand Up @@ -82,6 +84,8 @@ spec:
spec:
type: object
properties:
version:
type: string
server:
type: object
properties:
Expand Down
2 changes: 2 additions & 0 deletions examples/postgres/02-prefect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
namespace: pop-pg
name: my-server
spec:
version: 3.0.0rc13
postgres:
host: postgres
port: 5432
Expand All @@ -24,6 +25,7 @@ metadata:
namespace: pop-pg
name: my-work-pool
spec:
version: 3.0.0rc13
server:
namespace: pop-pg
name: my-server
Expand Down
Loading

0 comments on commit daee741

Please sign in to comment.