mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
update readme
This commit is contained in:
parent
0e00467469
commit
9e4d9f9ca4
2 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,8 @@ It is inspired by, contains code from and is designed to stay close to
|
|||
[Kubeval](https://github.com/instrumenta/kubeval), but with the following improvements:
|
||||
* **high performance**: will validate & download manifests over multiple routines, caching
|
||||
downloaded files in memory
|
||||
* configurable list of schemas locations, enabling validating Kubernetes custom resources (CRDs)
|
||||
* configurable list of **remote, or local schemas locations**, enabling validating Kubernetes
|
||||
custom resources (CRDs)
|
||||
|
||||
### A small overview of Kubernetes manifest validation
|
||||
|
||||
|
|
@ -120,7 +121,7 @@ in a local folder - for example schemas. Then we specify this folder as an addit
|
|||
|
||||
```
|
||||
# If the resource Kind is not found in kubernetesjsonschema.dev, also lookup in the schemas/ folder for a matching file
|
||||
$ ./bin/kubeconform -registry kubernetesjsonschema.dev -schema-location 'schemas/{{ .ResourceKind }}{{ .KindSuffix }}.json' fixtures/custom-resource.yaml
|
||||
$ ./bin/kubeconform -registry https://kubernetesjsonschema.dev -schema-location 'schemas/{{ .ResourceKind }}{{ .KindSuffix }}.json' fixtures/custom-resource.yaml
|
||||
```
|
||||
|
||||
### Converting an OpenAPI file to a JSON Schema
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ func ValidateStream(r io.Reader, regs []registry.Registry, k8sVersion string, c
|
|||
return []validationResult{{err: fmt.Errorf("failed reading file: %s", err)}}
|
||||
}
|
||||
|
||||
|
||||
validationResults := []validationResult{}
|
||||
if len(rawResources) == 0 {
|
||||
// In case a file has no resources, we want to capture that the file was parsed - and therefore send a message with an empty resource and no error
|
||||
|
|
|
|||
Loading…
Reference in a new issue