How does components definitions are being generated?
Is all of them are written then populate to the database or Is there a way generate them?
eg:
https://github.com/meshery/meshery/blob/master/server/meshmodel/admin-console-operator/2.14.0-SNAPSHOT.4/AdminConsole.json
Meshery has this component generation workflow that runs nightly everyday to generate components using this script.
Internally, it lookup this spreadsheet that has metadata for each component/model that meshery supports. Only those with publish==true (in the spreadsheet column) are generated.
This doc can give more inner insights. Meshery Models - Google Docs
Moreover, policy/relationships work differently and those are not generated rather hand written.