Remove length constraint (#190)

This commit is contained in:
Alberto Fernández 2020-04-17 01:05:00 +02:00 committed by GitHub
parent bf3824cc10
commit 67542608a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -284,7 +284,7 @@ func createContainerName(parts ...string) string {
name = append(name, trimToLen(pattern.ReplaceAllString(part, "-"), partLen)) name = append(name, trimToLen(pattern.ReplaceAllString(part, "-"), partLen))
} }
} }
return trimToLen(strings.Trim(strings.Join(name, "-"), "-"), 30) return strings.Trim(strings.Join(name, "-"), "-")
} }
func trimToLen(s string, l int) string { func trimToLen(s string, l int) string {