Skip to content

Commit

Permalink
Added version argument into README.md
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
volaka authored Aug 19, 2021
1 parent acf735c commit 0564a5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ $ kubeval --strict --schema-location https://raw.githubusercontent.com/yannh/kub
PASS - deployment.yaml contains a valid Deployment
```

To run `kubeval` against a specific Kubernetes version, pass the `-v` argument
```sh
$ kubeval -v 1.19.8 -s https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master ingress.yaml
PASS - ingress.yaml contains a valid Ingress (ingress)
```

## Building the schemas yourself

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

0 comments on commit 0564a5d

Please sign in to comment.