mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
Fixed some typos
This commit is contained in:
parent
33352d131e
commit
d40e3b886e
1 changed files with 4 additions and 4 deletions
|
@ -3,20 +3,20 @@
|
|||
|
||||
# Testing Policies
|
||||
|
||||
The resources definitions for testing are located in [/test](/test) directory. Each test contains a pair of files: one is the resource definition, and the second is the kyverno policy for this definition.
|
||||
The resources definitions for testing are located in the [test](/test) directory. Each test contains a pair of files: one is the resource definition, and the second is the Kyverno policy for this definition.
|
||||
|
||||
## Test using kubectl
|
||||
|
||||
To do this you should [install kyverno to the cluster](/documentation/installation.md).
|
||||
To do this you should [install Kyverno to the cluster](installation.md).
|
||||
|
||||
For example, to test the simplest kyverno policy for ConfigMap, create the policy and then the resource itself via kubectl:
|
||||
For example, to test the simplest Kyverno policy for `ConfigMap`, create the policy and then the resource itself via `kubectl`:
|
||||
|
||||
````bash
|
||||
cd test/ConfigMap
|
||||
kubectl create -f policy-CM.yaml
|
||||
kubectl create -f CM.yaml
|
||||
````
|
||||
Then compare the original resource definition in CM.yaml with the actual one:
|
||||
Then compare the original resource definition in `CM.yaml` with the actual one:
|
||||
|
||||
````bash
|
||||
kubectl get -f CM.yaml -o yaml
|
||||
|
|
Loading…
Add table
Reference in a new issue