You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: auto-detect Kubernetes schema
automatically detect the Kubernetes schema based on the document's
GroupVersionKind (GVK) and retrieve the matching schema from the
CRD catalog.
* fix: only auto-detect k8s crd for k8s files
* feat: check if GVK in main kubeSchema
* fix: test
* fix: promises were made
* fix: rename crd options and document them
* fix eslint errors
* fix tests
* fix: do not use CRDs-catalog for builtin k8s ressources
* fix: clarify @ts-ignore
* fix: import type from ../jsonSchema
* Handle case where custom schema provider is present
The CRD schema resolving logic now runs even if a custom schema provider
is present,
allowing this to work properly in vscode-yaml.
Signed-off-by: David Thompson <davthomp@redhat.com>
* Add logic to handle OpenShift CRDs
The CRD schemas for OpenShift are layed out slightly different from
everything else in the CRD schema repo in order to provide different
sets of schemas for different versions of OpenShift.
Signed-off-by: David Thompson <davthomp@redhat.com>
---------
Signed-off-by: David Thompson <davthomp@redhat.com>
Co-authored-by: Marius Svechla <m.svechla@gmail.com>
Co-authored-by: Roland Wahl <rwahl@protonmail.com>
Co-authored-by: David Thompson <davthomp@redhat.com>
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@ The following settings are supported:
41
41
-`yaml.schemas`: Helps you associate schemas with files in a glob pattern
42
42
-`yaml.schemaStore.enable`: When set to true the YAML language server will pull in all available schemas from [JSON Schema Store](https://www.schemastore.org)
43
43
-`yaml.schemaStore.url`: URL of a schema store catalog to use when downloading schemas.
44
+
-`yaml.kubernetesCRDStore.enable`: When set to true the YAML language server will parse Kubernetes CRDs automatically and download them from the [CRD store](https://github.com/datreeio/CRDs-catalog).
45
+
-`yaml.kubernetesCRDStore.url`: URL of a crd store catalog to use when downloading schemas. Defaults to `https://raw.githubusercontent.com/datreeio/CRDs-catalog/main`.
44
46
-`yaml.customTags`: Array of custom tags that the parser will validate against. It has two ways to be used. Either an item in the array is a custom tag such as "!Ref" and it will automatically map !Ref to scalar or you can specify the type of the object !Ref should be e.g. "!Ref sequence". The type of object can be either scalar (for strings and booleans), sequence (for arrays), map (for objects).
45
47
-`yaml.maxItemsComputed`: The maximum number of outline symbols and folding regions computed (limited for performance reasons).
46
48
-`[yaml].editor.tabSize`: the number of spaces to use when autocompleting. Takes priority over editor.tabSize.
0 commit comments