mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
Update writing-policies-generate.md
This commit is contained in:
parent
33f5e0a9f2
commit
5e2d161d5a
1 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,11 @@
|
|||
|
||||
# Generate Resources
|
||||
|
||||
```generate``` is used to create additional resources when a resource is created. This is useful to create supporting resources, such as role bindings for a new namespace.
|
||||
The ```generate``` rule can used to create additional resources when a new resource is created. This is useful to create supporting resources, such as new role bindings for a new namespace.
|
||||
|
||||
The `generate` rule supports `match` and `exclude` blocks, like other rules. Hence, the trigger for applying this rule can be the creation of any resource and its possible to match or exclude API requests based on subjects, roles, etc.
|
||||
|
||||
Currently, the generate rule only triggers during an API request and does not support [background processing](/documentation/writing-policies-background.md). Keeping resources synchhronized is planned for a future release (see https://github.com/nirmata/kyverno/issues/560).
|
||||
|
||||
## Example 1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue