Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request : using folder as schema location #303

Open
arthurzenika opened this issue Dec 2, 2024 · 0 comments
Open

feature request : using folder as schema location #303

arthurzenika opened this issue Dec 2, 2024 · 0 comments

Comments

@arthurzenika
Copy link

We are trying to use kubeconform with CRDs we're getting from a live kubernetes cluster :

❯ kubectl get crd -o name --no-headers | \
xargs -P 20 -I {} bash -c 'kubectl get {} -o json > "crds/$(basename {} .yaml).json"'

❯ cat file | kubeconform --strict $(for f in crds/*.json; do echo -schema-location "$f"; done) --summary
Summary: 381 resources found parsing stdin - Valid: 381, Invalid: 0, Errors: 0, Skipped: 0

This feels a bit cumbersome (and we also have a version of this without splitting into numerous small files), so we were wondering if there was any chance for the project to have a -schema-folder option which looks at json files in a given folder, instead of having file locations (or golang templated file locations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant