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

No schemas exist for kustomization.yaml #13

Closed
DevonBT opened this issue Mar 22, 2022 · 3 comments
Closed

No schemas exist for kustomization.yaml #13

DevonBT opened this issue Mar 22, 2022 · 3 comments

Comments

@DevonBT
Copy link

DevonBT commented Mar 22, 2022

This issue existed in the original repo from instrumenta (see instrumenta#9):

Kubeval fails for any kustomization.yaml file as no schema is included for it.
As https://kustomize.io/ v2.0 is merged into kubectl since 1.14., it would be superb to include the schema here.
(Yeah, I know this is a moving target as it changed with newer releases of Kustomize)

@eyarz
Copy link

eyarz commented Mar 22, 2022

I wonder if this is the correct behavior...?
Just like this project doesn't hold the schema definition for Helm chart or values, I don't think it should do it for kustomize.
If someone wants to verify his K8s schema with kustomize, he can just build the manifest and pipe it to kubeconform.

BTW, you can validate the kustomization.yaml file itself with this project and the schema from the schema-store:
$ jsonschema --instance sample.json sample.schema

@yannh
Copy link
Owner

yannh commented Apr 11, 2022

Hi @DevonBT ! I have no immediate plans to support kustomize - this repo solely contains the files from the Kubernetes swagger file https://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/swagger.json converted to json schemas! I hope @eyarz recommendation helped 🙇

@yannh yannh closed this as completed Apr 11, 2022
@wyardley
Copy link

Anyone found a good online source that is usable / drop-in compatible with kubeconform and similar tools?

Doesn't seem appropriate for https://github.com/datreeio/CRDs-catalog necessarily, since they're technically part of Kubernetes and not a CRD...

@yannh I understand your position, but would love to see these schemas get added here directly.

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

4 participants