Skip to content

Support yaml.kubernetesVersion setting and direct standalone-strict/all.json schema URLs#1273

Merged
datho7561 merged 1 commit into
redhat-developer:mainfrom
shin19991207:support-k8s-version-setting
Jun 10, 2026
Merged

Support yaml.kubernetesVersion setting and direct standalone-strict/all.json schema URLs#1273
datho7561 merged 1 commit into
redhat-developer:mainfrom
shin19991207:support-k8s-version-setting

Conversation

@shin19991207

Copy link
Copy Markdown
Member

What does this PR do?

Improves Kubernetes schema handling in yaml-language-server

  • Updates the default Kubernetes schema version to v1.34.1 (oldest supported Kubernetes minor once Kubernetes 1.33 reaches EOL on June 28, 2026)
  • Adds yaml.kubernetesVersion so the kubernetes schema keyword can resolve to a specific Kubernetes schema version
  • Recognizes direct yannh/kubernetes-json-schema *-standalone-strict/all.json URLs as Kubernetes schemas

What issues does this PR fix or reference?

Fixes redhat-developer/vscode-yaml#1180
Fixes #211

Is it tested? How?

  • New automated tests
  • Tested manually

Signed-off-by: Morgan Chang <shin19991207@gmail.com>

@datho7561 datho7561 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works well for me. Test against changes in HorizontalPodAutoscaler in 1.32 and 1.33 (they added a new field behavior.scaleUp.tolerance in 1.33) and confirmed that the completion and validation adjust to the version specified. Thanks, Morgan!

@datho7561 datho7561 merged commit c5ef492 into redhat-developer:main Jun 10, 2026
4 checks passed
@datho7561 datho7561 moved this to Done in Java Tooling Jun 10, 2026
@shin19991207 shin19991207 self-assigned this Jun 11, 2026
@shin19991207 shin19991207 deleted the support-k8s-version-setting branch June 11, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Matches multiple schemas when only one must validate Set specific Kubernetes Schema Version

2 participants