Closed eyarz closed 2 years ago
One small change, after reviewing kubeconform's README it seems like the correct schema-location should be 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/master/argo/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json'
(just changed KindSuffix
with ResourceKind
)
Thanks @shmuelsa for pointing it out to.
We want to make the CRD support experience more "natively" for our users. Because the majority of users are using public CRDs, we want to start cataloging popular CRDs for our schema validation step.
The POC will be to provide out of the box support for Argo:
datree test argo-cd.yaml --schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/master/argo/{{ .KindSuffix }}_{{ .ResourceAPIVersion }}.json'
.argo-cd.yaml
is passing schema validation because it was found in the CRDs-catalog repo.To make it even more seamless to the user, we can integrate step 2' into our CLI.
This means that every execution of datree will run the following flags by default:
--schema-location default --schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/master/argo/{{ .KindSuffix }}_{{ .ResourceAPIVersion }}.json'