Skip to content

Commit df5209f

Browse files
committed
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 <[email protected]>
1 parent 0a8fb7d commit df5209f

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 attempting to validate custom Kuberbetes resources against schemas of well-known custom resource definitions (CRDs)",
132+
"default": true
133+
},
134+
"yaml.kubernetesCRDStore.url": {
135+
"type": "string",
136+
"description": "The URL to use as the list of 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)