mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-26 21:02:03 +00:00
Merge branch 'master' of github.com:yannh/kubeconform into list-support
This commit is contained in:
commit
a053bbabe1
2 changed files with 14 additions and 2 deletions
10
Readme.md
10
Readme.md
|
|
@ -1,6 +1,7 @@
|
|||
# Kubeconform
|
||||
|
||||
[](https://github.com/yannh/kubeconform/actions?query=branch%3Amaster)
|
||||
[](https://formulae.brew.sh/formula/kubeconform)
|
||||
[](https://goreportcard.com/report/github.com/yannh/kubeconform)
|
||||
[](https://pkg.go.dev/github.com/yannh/kubeconform/pkg/validator)
|
||||
|
||||
|
|
@ -45,6 +46,15 @@ validation would still error when being deployed. See for example these bugs aga
|
|||
bug reports is not part of Kubernetes' OpenAPI spec, and therefore kubeconform/kubeval will not detect the
|
||||
configuration errors.
|
||||
|
||||
### Installation
|
||||
|
||||
If you are a [Homebrew](https://brew.sh/) user, you can install by running:
|
||||
|
||||
```bash
|
||||
$ brew install kubeconform
|
||||
```
|
||||
|
||||
You can also download the latest version from the [release page](https://github.com/yannh/kubeconform/releases).
|
||||
|
||||
### Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -114,6 +114,8 @@ for crdFile in sys.argv[1:]:
|
|||
f = open(crdFile)
|
||||
with f:
|
||||
for y in yaml.load_all(f, Loader=yaml.SafeLoader):
|
||||
if y is None:
|
||||
continue
|
||||
if "kind" not in y:
|
||||
continue
|
||||
if y["kind"] != "CustomResourceDefinition":
|
||||
|
|
|
|||
Loading…
Reference in a new issue