So, kinda tangentially related, I noticed the yaml language server I use has a couple of features called:
yaml.kubernetesCRDStore.enable: When set to true the YAML language server will parse Kubernetes CRDs automatically and download them from the CRD store.yaml.kubernetesCRDStore.url: URL of a crd store catalog to use when downloading schemas. Defaults to https://raw.githubusercontent.com/datreeio/CRDs-catalog/main.
which sounded exciting, but enabling it didn't do anything, and I don't know if they want to support it either, based on the following issue:
https://github.com/redhat-developer/yaml-language-server/issues/307
I know a lot of people use neovim AND Kubernetes, but what do you use to auto-detect the JSON/YAML schemas of special CRDs (argocd applications, externalSecrets, etc)? I know this is a thing in vscode, as my coworkers talk about it, but I don't know how we do it in neovim land? This would save me a ton of headaches of having to manually add schemas definitions to stuff though (or forcing a specific file naming pattern on a project).
#neovim #kubernetes #k8s #yaml #schemaValidation