Set specific Kubernetes Schema Version
See original GitHub issueIt appears the Kubernetes schema is hardcoded at https://github.com/redhat-developer/yaml-language-server/blob/master/src/server.ts#L32.
Is it possible to set a specific version? For example, if I wanted to use https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.16.0-standalone-strict/all.json?
I tried
yaml.schemas: {
"https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.16.0-standalone-strict/all.json": "/*.yaml"
}
but no luck.
For now, editing server.ts
on my local machine works well. I wonder if an [optional] environment variable could be helpful?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:18
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Versions in CustomResourceDefinitions
Versions can have different schemas, and conversion webhooks can convert custom resources between versions. Webhook conversions should follow the Kubernetes ...
Read more >Kubernetes Schema Validation | Datree.io
With kubeval and kubeconform you can set the version and start the process of evaluating which configurations must be changed to support the ......
Read more >How can we accomplish our Kubernetes schemas ...
The API group is specified in a REST path and in the apiVersion field ... Schemas are the set of JSON files for...
Read more >Amazon EKS Kubernetes versions
The PSP admission controller enforces pod security standards on pods in a namespace based on specific namespace labels that set the enforcement level....
Read more >GKE versioning and support | Google Kubernetes Engine ...
Nodes and node pool versions can be up to two minor versions older than the control plane, but cannot be newer than the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@joshrosso Yeah, this language server originally started (3~ years ago) as a kubernetes language server and once we found out that the support for kubernetes worked well we expanded it to all of yaml but kept that schema embedded. That’s why its been there for so long
@JPinkney 100% makes sense!