Skip to content

Commit 0fcd001

Browse files
committed
Fix SelectField API usage
Use correct SelectField signature: SelectField(name, options, ...fieldOption)
1 parent 7992561 commit 0fcd001

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/config/config.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,11 @@ var (
2222
)
2323
DefaultAccountRoleField = field.SelectField(
2424
"default-account-role",
25+
[]string{"read", "developer", "admin"},
2526
field.WithDisplayName("Default Account Role"),
2627
field.WithDescription("The default account role to use for account provisioning"),
2728
field.WithDefaultValue("read"),
2829
field.WithRequired(false),
29-
field.WithSelectOptions(
30-
field.SelectOption{Label: "Read", Value: "read"},
31-
field.SelectOption{Label: "Developer", Value: "developer"},
32-
field.SelectOption{Label: "Admin", Value: "admin"},
33-
),
3430
)
3531

3632
// ConfigurationFields defines the external configuration required for the

0 commit comments

Comments
 (0)