1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/documentation/writing-policies.md
2020-03-18 18:14:41 -07:00

779 B

documentation / Writing Policies

Writing Policies

The following picture shows the structure of a Kyverno Policy:

KyvernoPolicy

Each Kyverno policy contains one or more rules. Each rule has a match clause, an optional exclude clause, and one of a mutate, validate, or generate clause.

Each rule can validate, mutate, or generate configurations of matching resources. A rule definition can contain only a single mutate, validate, or generate child node.

These actions are applied to the resource in described order: mutation, validation and then generation.


Read Next >> Selecting Resources