code: func validateResourceQuantityValue(resource string, value resource.Quantity, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  	allErrs = append(allErrs, ValidateNonnegativeQuantity(value, fldPath)...)
  	if api.IsIntegerResourceName(resource) {
  		if value.MilliValue()%int64(1000) != int64(0) {
  			allErrs = append(allErrs, field.Invalid(fldPath, value, isNotIntegerErrorMsg))
  		}
  	}
  	return allErrs
  }
docs: // validateResourceQuantityValue enforces that specified quantity is valid for specified resource