mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-23 19:57:02 +00:00
update readme
This commit is contained in:
parent
0db97fdb93
commit
970e93af21
1 changed files with 8 additions and 3 deletions
11
Readme.md
11
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
|
### Overriding schemas location - CRD support
|
||||||
|
|
||||||
When the `-schema-location` file is not used, kubeconform will default to downloading schemas from
|
When the `-schema-location` parameter is not used, kubeconform will default to downloading schemas from
|
||||||
`https://kubernetesjsonschema.dev`. Kubeconform however supports the use of one, or multiple, custom schemas
|
`https://kubernetesjsonschema.dev`. Kubeconform however supports passing one, or multiple, schemas
|
||||||
registries - with access over HTTP or local filesystem. Kubeconform will lookup for schema definitions
|
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.
|
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:
|
All 3 following command lines are equivalent:
|
||||||
```
|
```
|
||||||
$ ./bin/kubeconform fixtures/valid.yaml
|
$ ./bin/kubeconform fixtures/valid.yaml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue