1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

696 documentatino fixes

This commit is contained in:
shravan 2020-02-19 21:47:15 +05:30
parent c60b4a5100
commit 90a5e18b1c
2 changed files with 7 additions and 7 deletions

View file

@ -129,7 +129,7 @@ Refer to a list of curated of ***[sample policies](/samples/README.md)*** that c
* [Background Processing](documentation/writing-policies-background.md) * [Background Processing](documentation/writing-policies-background.md)
* [Testing Policies](documentation/testing-policies.md) * [Testing Policies](documentation/testing-policies.md)
* [Policy Violations](documentation/policy-violations.md) * [Policy Violations](documentation/policy-violations.md)
* [Kubectl plugin usage](documentation/cli-usage.md) * [Kyverno CLI](documentation/cli-usage.md)
* [Sample Policies](/samples/README.md) * [Sample Policies](/samples/README.md)
## License ## License

View file

@ -2,7 +2,7 @@
# [kyverno CLI](https://github.com/nirmata/kyverno/releases) - kubectl plugin to deal with kyverno policies # [kyverno CLI](https://github.com/nirmata/kyverno/releases) - kubectl plugin to deal with kyverno policies
Used to validate policies and apply policies on resources. The Kyverno Command Line Interface (CLI) is designed to validate policies and test the behavior of applying policies to resources before adding the policy to a cluster. It can be used as a kubectl plugin and as a standalone CLI.
##Installation ##Installation
You can get the installation package of the cli for your os in the releases page [here](https://github.com/nirmata/kyverno/releases). You can get the installation package of the cli for your os in the releases page [here](https://github.com/nirmata/kyverno/releases).
@ -28,17 +28,17 @@ kubectl kyverno validate /path/to/policy1.yaml /path/to/policy2.yaml /path/to/fo
``` ```
#### Apply #### Apply
Applies policies on resources, supports applying multiple policies on multiple resources in a single command. Applies policies on resources, and supports applying multiple policies on multiple resources in a single command.
Also supports applying the given policies to an entire cluster. Will return output to stdout. You may want to redirect Also supports applying the given policies to an entire cluster. The current kubectl context will be used to access the cluster.
output to a file in case you applied a policy to a cluster. Will return results to stdout.
Apply to a resource: Apply to a resource:
``` ```
kubectl kyverno apply /path/to/policy.yaml --resource /path/to/resource.yaml kubectl kyverno apply /path/to/policy.yaml --resource /path/to/resource.yaml
``` ```
Apply to a cluster: Apply to all matching resources in a cluster:
``` ```
kubectl kyverno apply /path/to/policy.yaml --cluster kubectl kyverno apply /path/to/policy.yaml --cluster > policy-results.txt
``` ```
Valid command with further complexity: Valid command with further complexity:
``` ```