From df5209f7d20a28e032215923b956b655abf9cc3b Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 12 Jan 2026 17:55:59 -0500 Subject: [PATCH 1/4] Settings for "auto-detect Kubernetes crd schema" See https://github.com/redhat-developer/yaml-language-server/pull/1050 Settings to enable/disable the feature and change the repository used to find CRD schemas. Use https://raw.githubusercontent.com/nlamirault/crd-schema-store/refs/heads/main/schemas to test an alternate store of CRD schemas. Signed-off-by: David Thompson --- package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package.json b/package.json index 6fcce119..f44533f3 100644 --- a/package.json +++ b/package.json @@ -126,6 +126,16 @@ }, "markdownDescription": "Associate schemas to YAML files in the current workspace. The expected value of this configuration option is a string to string map:\n- **Key**: The path or URL of the schema to use\n- **Value**: A glob pattern specifying which files the schema should be used on" }, + "yaml.kubernetesCRDStore.enable": { + "type": "boolean", + "description": "Enable/disable attempting to validate custom Kuberbetes resources against schemas of well-known custom resource definitions (CRDs)", + "default": true + }, + "yaml.kubernetesCRDStore.url": { + "type": "string", + "description": "The URL to use as the list of well-known custom resource definition (CRD) schemas", + "default": "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main" + }, "yaml.format.enable": { "type": "boolean", "default": true, From 031302b1f96eeeff6a65f0094945f6b4401f4dba Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 13 Jan 2026 12:34:10 -0500 Subject: [PATCH 2/4] Fix wording of enable setting Co-authored-by: Morgan Chang --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f44533f3..6f9ce6a2 100644 --- a/package.json +++ b/package.json @@ -128,7 +128,7 @@ }, "yaml.kubernetesCRDStore.enable": { "type": "boolean", - "description": "Enable/disable attempting to validate custom Kuberbetes resources against schemas of well-known custom resource definitions (CRDs)", + "description": "Enable/disable validation of Kubernetes custom resources using schemas from well-known Custom Resource Definitions (CRDs)", "default": true }, "yaml.kubernetesCRDStore.url": { From 93e94c9e977991ed306bf17a2cb4e5d86fc89250 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 13 Jan 2026 12:35:05 -0500 Subject: [PATCH 3/4] Fix wording of url setting Co-authored-by: Morgan Chang --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6f9ce6a2..afede84d 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ }, "yaml.kubernetesCRDStore.url": { "type": "string", - "description": "The URL to use as the list of well-known custom resource definition (CRD) schemas", + "description": "The base URL for fetching well-known Custom Resource Definition (CRD) schemas, "default": "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main" }, "yaml.format.enable": { From 26b2a1ffcf793aa51cccffc8e927a5f12e519aa6 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 13 Jan 2026 12:37:11 -0500 Subject: [PATCH 4/4] Add a quote that somehow got lost Signed-off-by: David Thompson --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index afede84d..dd7f7304 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ }, "yaml.kubernetesCRDStore.url": { "type": "string", - "description": "The base URL for fetching well-known Custom Resource Definition (CRD) schemas, + "description": "The base URL for fetching well-known Custom Resource Definition (CRD) schemas", "default": "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main" }, "yaml.format.enable": {