Skip to content

Commit

Permalink
Replace fra with was as default region
Browse files Browse the repository at this point in the history
  • Loading branch information
torrefatto committed Jun 14, 2024
1 parent 3fb8f8b commit 9d8d75c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,7 @@ koyeb databases create NAME [flags]
-h, --help help for create
--instance-type string Instance type (free, small, medium or large) (default "free")
--pg-version int PostgreSQL version (default 16)
--region string Region where the database is deployed (default "fra")
--region string Region where the database is deployed (default "was")
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion pkg/koyeb/databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func addCreateDbServiceDefinitionFlags(flags *pflag.FlagSet) {
addUpdateDbServiceDefinitionFlags(flags)

flags.Int64("pg-version", 16, "PostgreSQL version")
flags.String("region", "fra", "Region where the database is deployed")
flags.String("region", "was", "Region where the database is deployed")
flags.String("db-name", "koyebdb", "Database name")
flags.String("db-owner", "koyeb-adm", "Database owner")
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/koyeb/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ func parseRegions(flags *pflag.FlagSet, currentRegions []string) ([]string, erro
}
// For new services, if no region is specified, add the default region
if !flags.Lookup("regions").Changed && len(currentRegions) == 0 {
newRegions = []string{"fra"}
newRegions = []string{"was"}
}
return newRegions, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/koyeb/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func TestParseRegions(t *testing.T) {
"set default": {
cliFlags: []string{},
currentRegions: []string{},
expected: []string{"fra"},
expected: []string{"was"},
},
"replace default": {
cliFlags: []string{"--region", "tyo"},
Expand Down

0 comments on commit 9d8d75c

Please sign in to comment.