From 970e93af21140ab273ce4d9030006c52e26a8f07 Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Sun, 18 Oct 2020 14:58:09 +0200 Subject: [PATCH] update readme --- Readme.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index bdaae82..4f6a5bd 100644 --- a/Readme.md +++ b/Readme.md @@ -98,11 +98,16 @@ Summary: 65 resources found in 34 files - Valid: 55, Invalid: 2, Errors: 8 Skipp ### Overriding schemas location - CRD support -When the `-schema-location` file is not used, kubeconform will default to downloading schemas from -`https://kubernetesjsonschema.dev`. Kubeconform however supports the use of one, or multiple, custom schemas -registries - with access over HTTP or local filesystem. Kubeconform will lookup for schema definitions +When the `-schema-location` parameter is not used, kubeconform will default to downloading schemas from +`https://kubernetesjsonschema.dev`. Kubeconform however supports passing one, or multiple, schemas +locations - HTTP URLs, or local filesystem paths, in which case it will lookup for schema definitions in each of them, in order, stopping as soon as a matching file is found. + * If the -schema-location value does not end with '.json', Kubeconform will assume filenames / a file + structure identical to that of kubernetesjsonschema.dev + * if the -schema-location value ends with '.json' - Kubeconform assumes the value is a Go templated + string that indicates how to search for JSON schemas. + All 3 following command lines are equivalent: ``` $ ./bin/kubeconform fixtures/valid.yaml