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:
Kubernetes Prow Robot
2021-06-14 10:55:41 -07:00
committed by GitHub

View File

@@ -351,7 +351,7 @@ func validateCSINodeDriverNodeID(nodeID string, fldPath *field.Path, validationO
maxLength = csiNodeIDLongerMaxLength
}
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
}