-
Notifications
You must be signed in to change notification settings - Fork 223
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
Kubernetes v1.19 not supported #424
Comments
We need to get instrumenta/kubernetes-json-schema#28 merged first, then we can add |
@evidolob that repository hasn't been updated in almost a year now. The last commit was in April 2020. Perhaps it's time to consider using a different source of schemas. Kubernetes 1.20 has already been released and 1.21 is in alpha. |
AFAIK there isn't really a different source of kubernetes schemas. If you want a true kubernetes editing experience in VSCode then use |
Thanks for the suggestion, I'll take a look at People over at instrumenta/kubernetes-json-schema suggested some alternatives in the relevant issue from Nov 2020 (!) -see instrumenta/kubernetes-json-schema#26 Based on the fact that the K8s schema is the only schema explicitly mentioned in this plugin's README, I'm guessing that maintaining K8s compatibility is important for you guys. If instrumenta/kubernetes-json-schema is not longer being maintained, I humbly suggest you consider switching to an actively maintained fork or even host your own. |
We have plans to remove build-in k8s support redhat-developer/yaml-language-server#307 |
@evidolob |
is |
Fixed with redhat-developer/yaml-language-server#429 |
* redhat-developer#412 Implement CodeLens, show all json schemas in codelens Signed-off-by: Yevhen Vydolob <[email protected]> * Fix review comments Signed-off-by: Yevhen Vydolob <[email protected]> * delete commented code Signed-off-by: Yevhen Vydolob <[email protected]> * Use 'isBooelan' as type gard Signed-off-by: Yevhen Vydolob <[email protected]> * fix tests Signed-off-by: Yevhen Vydolob <[email protected]>
I'm opening this issue here because of the plugin's claim to have "built-in Kubernetes syntax support".
Unfortunately, it looks like the K8s stops at 1.18 and there's no support for 1.19+
Expected Behavior
Schema support for Kubernetes v1.19+
Current Behavior
Kubernetes yaml v1.19+ not supported. The plugin uses older schema definitions and does not recognize new fields.
Steps to Reproduce
Copy the following yaml into vscode, select "kubernetes" as the schema. Several properties including "pathType", and "backend" will not be allowed:
for reference, my schema definition file:
Environment
The text was updated successfully, but these errors were encountered: