mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* fix: cascading mutations Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * remove explicit AddResource call Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * update resource in context Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> |
||
---|---|---|
.. | ||
01-policy.yaml | ||
02-configmap.yaml | ||
configmap-assert.yaml | ||
configmap.yaml | ||
policy-assert.yaml | ||
policy.yaml | ||
README.md |
Description
This test creates a policy with two mutation rules. The second rule depends on the mutation in the first rule. To succeed, the changes in the first mutation rule need to cascade correctly to get the second rule to execute correctly.