mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-29 09:40:49 +00:00
update validation transformer example text
This commit is contained in:
@@ -4,14 +4,13 @@
|
|||||||
[kubeval]: https://github.com/instrumenta/kubeval
|
[kubeval]: https://github.com/instrumenta/kubeval
|
||||||
[plugin]: ../../docs/plugins.md
|
[plugin]: ../../docs/plugins.md
|
||||||
|
|
||||||
Kustomize doesn't validate the resources that it loads
|
kustomize doesn't validate either its input or
|
||||||
from files or [bases], but kustomize has a [plugin]
|
output beyond the validation provided by the
|
||||||
system that allows one to validate the
|
marshalling/unmarshalling packages it depends on.
|
||||||
loaded resources.
|
|
||||||
|
Another tool, [kubeval], goes beyond this to do
|
||||||
|
k8s aware validation. Here's a usage example:
|
||||||
|
|
||||||
One way to validate Kubernetes resources is to run
|
|
||||||
[kubeval] against the resource file. For example,
|
|
||||||
an invalid resource file gives similar error:
|
|
||||||
```shell
|
```shell
|
||||||
$ kubeval my-invalid-rc.yaml
|
$ kubeval my-invalid-rc.yaml
|
||||||
The document my-invalid-rc.yaml contains an invalid ReplicationController
|
The document my-invalid-rc.yaml contains an invalid ReplicationController
|
||||||
|
|||||||
Reference in New Issue
Block a user