mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Merge pull request #102550 from CKchen0726/fix_log_error_for_mr98753
update error info with the new limit in #98753
This commit is contained in:
commit
5aedca2758
@ -351,7 +351,7 @@ func validateCSINodeDriverNodeID(nodeID string, fldPath *field.Path, validationO
|
|||||||
maxLength = csiNodeIDLongerMaxLength
|
maxLength = csiNodeIDLongerMaxLength
|
||||||
}
|
}
|
||||||
if len(nodeID) > maxLength {
|
if len(nodeID) > maxLength {
|
||||||
allErrs = append(allErrs, field.Invalid(fldPath, nodeID, fmt.Sprintf("must be %d characters or less", csiNodeIDMaxLength)))
|
allErrs = append(allErrs, field.Invalid(fldPath, nodeID, fmt.Sprintf("must be %d characters or less", maxLength)))
|
||||||
}
|
}
|
||||||
return allErrs
|
return allErrs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user