Skip to content

Commit 02f23a1

Browse files
committed
convert datacenter config to select field
1 parent 2f3695e commit 02f23a1

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

pkg/config/config.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ var (
1313
field.WithIsSecret(true),
1414
)
1515

16-
WorkatoDataCenterFiekd = field.StringField(
16+
WorkatoDataCenterFiekd = field.SelectField(
1717
"workato-data-center",
18+
[]string{"us", "eu", "jp", "sg", "au", "il", "sandbox"},
1819
field.WithDisplayName("Data center"),
19-
field.WithDescription("Your workato data center (us, eu, jp, sg, au) default is 'us' see more on https://docs.workato.com/workato-api.html#base-url"),
20+
field.WithDescription("Your workato data center (us, eu, jp, sg, au, il, sandbox). See more on https://docs.workato.com/workato-api.html#base-url"),
2021
field.WithDefaultValue("us"),
2122
)
2223

pkg/connector/client/helpers.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ var (
1616
// WorkatoDataCenters
1717
// https://docs.workato.com/workato-api.html#base-url
1818
WorkatoDataCenters = map[string]string{
19-
"us": "https://www.workato.com",
20-
"eu": "https://app.eu.workato.com",
21-
"jp": "https://app.jp.workato.com",
22-
"sg": "https://app.sg.workato.com",
23-
"au": "https://app.au.workato.com",
19+
"us": "https://www.workato.com",
20+
"eu": "https://app.eu.workato.com",
21+
"jp": "https://app.jp.workato.com",
22+
"sg": "https://app.sg.workato.com",
23+
"au": "https://app.au.workato.com",
24+
"il": "https://app.il.workato.com",
25+
"sandbox": "https://app.trial.workato.com",
2426
}
2527
)
2628

0 commit comments

Comments
 (0)