refactor(db): extract Supabase migrations from release artifact

This commit is contained in:
Peter 2025-01-05 11:42:15 +01:00
parent 2ef37683cb
commit 7d9e518f86
Signed by: prskr
GPG key ID: F56BED6903BC5E37
20 changed files with 113 additions and 185 deletions

View file

@ -73,7 +73,8 @@ func (p controlPlane) Run(ctx context.Context, cache cache.SnapshotCache) (err e
// gRPC golang library sets a very small upper bound for the number gRPC/h2
// streams over a single TCP connection. If a proxy multiplexes requests over
// a single connection to the management server, then it might lead to
// availability problems. Keepalive timeouts based on connection_keepalive parameter https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/examples#dynamic
// availability problems. Keepalive timeouts based on connection_keepalive parameter
// https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/examples#dynamic
grpcOptions := append(make([]grpc.ServerOption, 0, 4),
grpc.MaxConcurrentStreams(grpcMaxConcurrentStreams),
@ -139,6 +140,7 @@ func (p controlPlane) Run(ctx context.Context, cache cache.SnapshotCache) (err e
return err
}
//nolint:unparam // signature required by kong
func (p controlPlane) AfterApply(kongctx *kong.Context) error {
kongctx.BindTo(cache.NewSnapshotCache(false, cache.IDHash{}, nil), (*cache.SnapshotCache)(nil))
return nil

View file

@ -59,6 +59,7 @@ type app struct {
} `embed:"" prefix:"logging."`
}
//nolint:unparam // signature required by kong
func (a app) AfterApply(kongctx *kong.Context) error {
opts := zap.Options{
Development: a.Logging.Development,