Skip to content

Commit 07af862

Browse files
Settings for "auto-detect Kubernetes crd schema" (#1192)
* Settings for "auto-detect Kubernetes crd schema" See redhat-developer/yaml-language-server#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 <davthomp@redhat.com> * Fix wording of enable setting Co-authored-by: Morgan Chang <shin19991207@gmail.com> * Fix wording of url setting Co-authored-by: Morgan Chang <shin19991207@gmail.com> * Add a quote that somehow got lost Signed-off-by: David Thompson <davthomp@redhat.com> --------- Signed-off-by: David Thompson <davthomp@redhat.com> Co-authored-by: Morgan Chang <shin19991207@gmail.com>
1 parent 0a8fb7d commit 07af862

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@
126126
},
127127
"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"
128128
},
129+
"yaml.kubernetesCRDStore.enable": {
130+
"type": "boolean",
131+
"description": "Enable/disable validation of Kubernetes custom resources using schemas from well-known Custom Resource Definitions (CRDs)",
132+
"default": true
133+
},
134+
"yaml.kubernetesCRDStore.url": {
135+
"type": "string",
136+
"description": "The base URL for fetching well-known Custom Resource Definition (CRD) schemas",
137+
"default": "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main"
138+
},
129139
"yaml.format.enable": {
130140
"type": "boolean",
131141
"default": true,

0 commit comments

Comments
 (0)