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] Replace fra with was as default region #228

Merged
merged 1 commit into from
Jun 17, 2024
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
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
Loading