Skip to content

Commit

Permalink
fix: change valid length (NaverCloudPlatform#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
dusdjhyeon authored and inpyu committed Sep 12, 2024
1 parent 9951152 commit ae2c5d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (m *mysqlResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
stringplanmodifier.RequiresReplace(),
},
Validators: []validator.String{
stringvalidator.LengthBetween(3, 20),
stringvalidator.LengthBetween(3, 30),
stringvalidator.RegexMatches(
regexp.MustCompile(`^[ㄱ-ㅣ가-힣A-Za-z0-9-]+$`),
"Composed of alphabets, numbers, hyphen (-).",
Expand All @@ -74,7 +74,7 @@ func (m *mysqlResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
stringplanmodifier.RequiresReplace(),
},
Validators: []validator.String{
stringvalidator.LengthBetween(3, 30),
stringvalidator.LengthBetween(3, 20),
stringvalidator.RegexMatches(
regexp.MustCompile(`^[a-z]+[a-z0-9-]+[a-z0-9]$`),
"Composed of lowercase alphabets, numbers, hyphen (-). Must start with an alphabetic character, and the last character can only be an English letter or number.",
Expand Down

0 comments on commit ae2c5d6

Please sign in to comment.