Jarvis Markers for Asset Discovery
Overview
Jarvis Markers is a feature designed to enhance the discovery and management of Jarvis-related assets, including Blueprints, Environments, Instructions, Workflows, and Layouts. This capability improves asset scanning efficiency and provides better organization for repositories with multiple Jarvis assets.
How It Works
Jarvis Markers use special marker files to indicate directories containing Jarvis assets. These marker files help Jarvis focus its scanning efforts on relevant directories, optimizing the asset discovery process.
Marker File Implementation
- Marker files have specific extensions to indicate different Jarvis asset types:
.environments.blueprints.workflows.layouts.instructions
- Marker files should have no filename, only the extension (e.g.,
.blueprints) - Place marker files in the Git directories that Jarvis will scan for changes and assets
For .instructions Jarvis will recursively scan for image and .md files.
Multiple Markerfiles can not coexist in the same directory- Jarvis will still scan the default directory naming convention at root. (e.g.,
blueprints/,environmnets/, etc.)
Directory Structure Examples
# devops-repo
dev/
dont_care_dir/
.blueprints
dev.yaml
# dev-repo-1
infra/
config/
environment/
.environments
env.yaml -> (infra__config__environment__dev-env.yaml)
stg/
.environments
env.yaml -> (infra__config__environment__stg-env.yaml)
# dev-repo-1
app/
config/
environment/
env1.yaml -> (app__config__environment__env1.yaml)
Optimized Scanning Process
- Jarvis scans only directories containing Jarvis marker files for associated assets
- This approach reduces scanning time and resource usage
- Eliminates the need to parse all files in the repository, improving performance
Benefits
- Improved repository organization and asset management
- Reduced scanning time and resource usage
- Clear indication of Jarvis-related asset locations
- Flexibility in structuring repositories with multiple Jarvis assets
- Enhanced support for GitOps workflows
Implementation Considerations
- The Jarvis scanning algorithm has been updated to recognize and utilize marker files
- Documentation and guidelines are available for users on how to implement and use Jarvis markers
- Backward compatibility with existing Jarvis implementations is ensured
Getting Started
To start using Jarvis Markers in your repository:
- Identify the directories containing Jarvis assets (Blueprints, Environments, etc.)
- Add the appropriate marker file to each directory (e.g.,
.blueprints,.environments) - Ensure your asset files are properly named and located within the marked directories
- Commit and push your changes to the repository
- Jarvis will automatically detect and use the new marker system on the next scan
Best Practices
- Use marker files consistently across your repositories
- Organize your assets logically within your repository structure
- Avoid placing unrelated files in directories with Jarvis markers
- Regularly review and update your marker placement as your repository evolves
Conclusion
Jarvis Markers provide an efficient and flexible way to manage Jarvis assets within your Git repositories. By adopting this feature, you can improve your asset organization, reduce scanning times, and enhance your overall GitOps workflow.
For more information or assistance, please refer to the Jarvis documentation or contact our support team.