mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
updated readme
This commit is contained in:
parent
0927e7a732
commit
e18deb94f2
1 changed files with 9 additions and 0 deletions
|
@ -88,5 +88,14 @@ Saving the mutated resource in a file/directory:
|
||||||
kyverno apply /path/to/policy.yaml --resource /path/to/resource.yaml -o <file path/directory path>
|
kyverno apply /path/to/policy.yaml --resource /path/to/resource.yaml -o <file path/directory path>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Apply policy with variables:
|
||||||
|
|
||||||
|
Use --set flag to pass the values for variables in a policy while applying on a resource.
|
||||||
|
|
||||||
|
```
|
||||||
|
kyverno apply /path/to/policy.yaml --resource /path/to/resource.yaml --set <variable1>=<value1>,<variable2>=<value2>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<small>*Read Next >> [Sample Policies](/samples/README.md)*</small>
|
<small>*Read Next >> [Sample Policies](/samples/README.md)*</small>
|
||||||
|
|
Loading…
Reference in a new issue