Skip to content

Commit

Permalink
sqlInstances.databases is allowed to be empty, in which case one defa…
Browse files Browse the repository at this point in the history
…ult database is created
  • Loading branch information
mortenlj committed Oct 2, 2024
1 parent 6433221 commit 6e18364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/postgres/dbinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (i *DBInfo) fetchSQLDatabases(ctx context.Context) error {
return fmt.Errorf("fetchSQLDatabases: expected exactly one sqlinstance, found %d", len(app.Spec.GCP.SqlInstances))
}

if len(app.Spec.GCP.SqlInstances[0].Databases) == 1 {
if len(app.Spec.GCP.SqlInstances[0].Databases) < 2 {
return nil
}

Expand Down

0 comments on commit 6e18364

Please sign in to comment.