yaml-language-server
yaml-language-server copied to clipboard
feat: auto-detect Kubernetes schema
What does this PR do?
This PR adds an option to automatically detect the Kubernetes schema by parsing the contents of the document. In case a Kubernetes GroupVersionKind (GVK) is detected, the matching schema is retrieved from the CRD catalog.
What issues does this PR fix or reference?
https://github.com/redhat-developer/yaml-language-server/issues/605
Is it tested? How?
Tests for parsing the Kubernetes Group Version Kind have been added
Please let me know if this can get merged. I think it improves the usability of the langugage server in Kubernetes environments significantly. If there is anything I can change to get this merged, please let me know!