Several editors, like VS Code and IntelliJ, support JSON Schema to provide validation and autocompletion for YAML files. I'd like Kustomize to provide a JSON Schema file for its configuration.
Ideally would be available on http://schemastore.org/json/
Using vs code its kind of irritating that kustomization.yaml files marked as wrong.
Since Kustomize now has apiVersion and kind in the file, maybe the schema can be put where the other Kubernetes API schemas are, so all editors that import the Kubernetes API schemas will just get it?
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
/remove-lifecycle stale
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Hello!
I'm getting Unexpected property patches error for all my kustomization.yaml files in VSCode and COCVim :(
Am I doing something wrong?
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
@ralgozino there is no patches anymore in latest kustomize. Only patchesJson6902 and patchesStrategicMerge.
@michaelkrupp Are you sure that it has been removed? It was only introduced in 3.2.0 (inlinePatch doc on master branch and 3.2.0 release notes), and I can't see anything in later release notes that say it has been removed.
@pgpx you appear to be correct. I could not find any official documentation for this though, aside from the release notes you already linked.
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close
@fejta-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue with/reopen.
Mark the issue as fresh with/remove-lifecycle rotten.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Most helpful comment
Since Kustomize now has
apiVersionandkindin the file, maybe the schema can be put where the other Kubernetes API schemas are, so all editors that import the Kubernetes API schemas will just get it?