Skip to content
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

chore: update schema #948

Merged
merged 4 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cmd/config/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,10 @@ func commandExample(cCtx *cli.Context) error { //nolint:funlen,maintidx
Memory: 4096,
},
EnablePublicAccess: ptr(true),
Replicas: ptr(uint8(1)),
Networking: nil,
Storage: &model.ConfigPostgresStorage{
Storage: &model.ConfigPostgresResourcesStorage{
Capacity: 20,
},
Autoscaler: nil,
Replicas: nil,
},
Settings: &model.ConfigPostgresSettings{
Jit: ptr("off"),
Expand Down
2 changes: 1 addition & 1 deletion cmd/config/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func expectedConfig() *model.ConfigConfig {
Postgres: &model.ConfigPostgres{
Version: ptr("14.6-20230406-2"),
Resources: &model.ConfigPostgresResources{
Storage: &model.ConfigPostgresStorage{
Storage: &model.ConfigPostgresResourcesStorage{
Capacity: 1,
},
},
Expand Down
4 changes: 1 addition & 3 deletions dockercompose/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,8 @@ func getConfig() *model.ConfigConfig { //nolint:maintidx
Memory: 500,
},
EnablePublicAccess: ptr(false),
Replicas: ptr(uint8(1)),
Networking: nil,
Storage: nil,
Autoscaler: nil,
Replicas: nil,
},
Settings: nil,
},
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/hashicorp/go-getter v1.7.8
github.com/nhost/be v0.0.0-20250206085705-d58c2e4dc6b9
github.com/nhost/be v0.0.0-20250211083240-96c835d9c359
github.com/pelletier/go-toml/v2 v2.2.3
github.com/rs/cors/wrapper/gin v0.0.0-20240830163046-1084d89a1692
github.com/sirupsen/logrus v1.9.3
Expand Down
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,12 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/nhost/be v0.0.0-20250206085705-d58c2e4dc6b9 h1:pRGRBbNAVFS/QSHULpXogU6v2rNDr2/EYGIQZcUP3qY=
github.com/nhost/be v0.0.0-20250206085705-d58c2e4dc6b9/go.mod h1:ptZc9rgaLJcew/L9b8w0nN4AfOGxqUINqMvCe4uMV/M=
github.com/nhost/be v0.0.0-20250206162232-abfad0d0fc9c h1:WhKuYjtjt8nK/lMa+P2m4zJzBm+MeCzAT83c3eztWsU=
github.com/nhost/be v0.0.0-20250206162232-abfad0d0fc9c/go.mod h1:ptZc9rgaLJcew/L9b8w0nN4AfOGxqUINqMvCe4uMV/M=
github.com/nhost/be v0.0.0-20250207083244-0a46c4feae7b h1:FvP6PyJZExw/3XFJyOJ7XTzpjrQ6wVpLloX1vw6HrAw=
github.com/nhost/be v0.0.0-20250207083244-0a46c4feae7b/go.mod h1:ptZc9rgaLJcew/L9b8w0nN4AfOGxqUINqMvCe4uMV/M=
github.com/nhost/be v0.0.0-20250211083240-96c835d9c359 h1:vFgKEHSPsLQbw1kpW1fuD+ZKmkolP1xINJ/r9G1X3II=
github.com/nhost/be v0.0.0-20250211083240-96c835d9c359/go.mod h1:ptZc9rgaLJcew/L9b8w0nN4AfOGxqUINqMvCe4uMV/M=
github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=
github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY=
github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=
Expand Down
38 changes: 18 additions & 20 deletions nhostclient/graphql/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion project/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func DefaultConfig() (*model.ConfigConfig, error) {
},
Postgres: &model.ConfigPostgres{ //nolint:exhaustruct
Resources: &model.ConfigPostgresResources{ //nolint:exhaustruct
Storage: &model.ConfigPostgresStorage{
Storage: &model.ConfigPostgresResourcesStorage{
Capacity: 1,
},
},
Expand Down
Loading
Loading