datreeio / CRDs-catalog

Popular Kubernetes CRDs (CustomResourceDefinition) in JSON schema format.
MIT License
492 stars 204 forks source link

CRD Extractor utility inspects API group and organizes schemas by subdirectory #147

Closed bmuschko closed 1 year ago

bmuschko commented 1 year ago

I think it would be helpful if the tool could have a look at the value of the spec.group attribute, create a subdirectory for it under $HOME/.datree/crdSchemas, and organize the corresponding schemas underneath it. This will help with avoiding to manually organize the schemas before providing the pull request for this repository.

hadar-co commented 1 year ago

@bmuschko good idea, we will prioritize and implement it 👍

hadar-co commented 1 year ago

@bmuschko The script has been updated to organize the schemas by group:) Just note that bash version 4 or higher is required 👍

bmuschko commented 1 year ago

Perfect, thanks!