SAP-archive / ytt-lint

ytt lint validates ytt-templates and plain yaml-files. It is designed for Kubernetes artifacts, but works with other yaml-files.
Apache License 2.0
11 stars 2 forks source link

Add schema for Kustomization #2

Closed MPV closed 3 years ago

MPV commented 3 years ago

Would you be open to adding schema for Kustomization?

As kind: Kustomization is a part of kubernetes (at least via kubectl).

I currently get this warning on these kinds of manifests:

Error loading schema for kind Kustomization: could not find schema file k8s/kustomize.config.k8s.io/v1beta1/kustomization.json in: [/Users/myself/.ytt-lint/schema /Users/myself/.vscode/extensions/phil9909.ytt-lint-0.2.0/schema]

...on a manifest with:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# [...]
phil9909 commented 3 years ago

Sorry for the delay, when I moved this repo from my user to the SAP org I forgot to activate the "watch" option of GitHub.

Yes, if it is official kubernets, I think it should be part of ytt-lint. Will have a look soon.

phil9909 commented 3 years ago

With the latest release v0.2.1 I incorporated the kustomization.yaml schema from JSON Schema Store. Let me know if this works for you.

MPV commented 3 years ago

Wonderful, huge thanks! I can confirm that it worked like a charm. 👍