Skip to content

Commit 14d4cbe

Browse files
committed
Add Option to Overwrite Kubernetes Schema
Add an option to overwrite the default Kubernetes schema URL with a custom one, by setting a `YAMLLS_KUBERNETES_SCHEMA_URL` environment variable. See - redhat-developer#998 - redhat-developer#824 - redhat-developer#841 - redhat-developer#962 - redhat-developer#1050 Main use case is to use https://github.com/ricoberger/kubernetes-json-schema, which contains the schema for Kubernetes and the CRDs I'm using.
1 parent 3821411 commit 14d4cbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/languageservice/utils/schemaUrls.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { isBoolean } from './objects';
66
import { isRelativePath, relativeToAbsolutePath } from './paths';
77

88
export const KUBERNETES_SCHEMA_URL =
9+
process.env.YAMLLS_KUBERNETES_SCHEMA_URL ||
910
'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.32.1-standalone-strict/all.json';
1011
export const JSON_SCHEMASTORE_URL = 'https://www.schemastore.org/api/json/catalog.json';
1112

0 commit comments

Comments
 (0)