question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set specific Kubernetes Schema Version

See original GitHub issue

It 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:open
  • Created 4 years ago
  • Reactions:18
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JPinkneycommented, Jul 21, 2020

@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

0reactions
joshrossocommented, Aug 12, 2020

@JPinkney 100% makes sense!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found