remove unused not api functions in the pkg/apis directory

This commit is contained in:
HirazawaUi
2023-01-18 23:37:57 +08:00
parent 4c4d4ad0a4
commit c50c19d13a
11 changed files with 0 additions and 173 deletions

View File

@@ -350,11 +350,6 @@ func validateCSINodeDriverNodeID(nodeID string, fldPath *field.Path, validationO
return allErrs
}
// CSINodeLongerID will check if the nodeID is longer than csiNodeIDMaxLength
func CSINodeLongerID(nodeID string) bool {
return len(nodeID) > csiNodeIDMaxLength
}
// validateCSINodeDriverAllocatable tests if Allocatable in CSINodeDriver has valid volume limits.
func validateCSINodeDriverAllocatable(a *storage.VolumeNodeResources, fldPath *field.Path) field.ErrorList {
allErrs := field.ErrorList{}