Skip to content

Commit

Permalink
Reduce the limit for workspace from 3 to 2 chars (#418)
Browse files Browse the repository at this point in the history
We're reducing the limit of characters for the workspace name from 3 to
2 chars

Signed-off-by: Mario de Frutos <[email protected]>
  • Loading branch information
ethervoid authored Feb 22, 2021
1 parent ebe29b8 commit ac00069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/installation_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func isValidDNS(dns string) error {
return errors.Errorf("fully qualified domain names must be less than 254 characters in length. Provided name %s was %d characters long", dns, len(dns))
}
subdomain := strings.SplitN(dns, ".", 2)[0]
if len(subdomain) >= 64 || len(subdomain) < 3 {
if len(subdomain) >= 64 || len(subdomain) < 2 {
return errors.Errorf("DNS subdomain names must be between 3 and 64 characters, but name was %d long. DNS=%s", len(dns), dns)
}
// check that domain matches regex for valid names
Expand Down

0 comments on commit ac00069

Please sign in to comment.