mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
Fix log validation messages and example typo
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
This commit is contained in:
@@ -432,7 +432,7 @@ func heuristicsCopyFileLog(ctx context.Context, w io.Writer, logDir, logFileName
|
||||
func safeServiceName(s string) error {
|
||||
// Max length of a service name is 256 across supported OSes
|
||||
if len(s) > maxServiceLength {
|
||||
return fmt.Errorf("length must be less than 100")
|
||||
return fmt.Errorf("length must be less than %d", maxServiceLength)
|
||||
}
|
||||
|
||||
if reServiceNameUnsafeCharacters.MatchString(s) {
|
||||
|
||||
Reference in New Issue
Block a user