Skip to content

Commit 0564a5d

Browse files
authored
Added version argument into README.md
I just tried to run Kubeval on a specific version of Kubernetes and didn't manage it so I read the man and find the solution. That's why this info also can be helpful to others.
1 parent acf735c commit 0564a5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ $ kubeval --strict --schema-location https://raw.githubusercontent.com/yannh/kub
3131
PASS - deployment.yaml contains a valid Deployment
3232
```
3333

34+
To run `kubeval` against a specific Kubernetes version, pass the `-v` argument
35+
```sh
36+
$ kubeval -v 1.19.8 -s https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master ingress.yaml
37+
PASS - ingress.yaml contains a valid Ingress (ingress)
38+
```
39+
3440
## Building the schemas yourself
3541

3642
The tooling for generating these schemas is [a fork](https://github.com/yannh/openapi2jsonschema)

0 commit comments

Comments
 (0)