Open
Description
Current Behavior
The component generation logic in Meshery processes only files directly in the specified directory when generating models. For repositories with complex directory structures, this requires precise path specification to each set of component definition files, increasing configuration fragility and maintenance burden.
Desired Behavior
Update the component generation logic to recursively search all files under a specified directory. This would allow users to simply point to any level of a git repository, and Meshery would automatically discover all relevant component definition files regardless of their location in the directory tree.
Implementation
The enhancement should:
- Modify the model/component generation logic in the MeshKit repository to support recursive directory traversal
- Add configuration options to:
- Enable/disable recursive search (default: enabled)
- Set maximum depth for recursion (default: unlimited)
- Filter for specific file patterns (default: *.yaml, *.yml, *.json)
- Maintain backward compatibility with existing component generation workflows
- Update relevant CLI commands and API endpoints to support this enhanced functionality
Acceptance Tests
- Ability to register components from a deeply nested directory structure by specifying only the root directory
Successfully generate models from complex repositories where component definitions are distributed across multiple subdirectories - Performance remains acceptable when processing large repositories with many files
- Clear error messages when issues occur during recursive directory processing
- Documentation updated to reflect new functionality
Mockups
Contributor Guides and Handbook
- 🛠 Meshery Build & Release Strategy
- 📚 Instructions for contributing to documentation
- 🎨 Wireframes and designs for Meshery UI in Figma
- 🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack