mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
* fix mutate targets validation Signed-off-by: ShutingZhao <shuting@nirmata.com> * linter fixes Signed-off-by: ShutingZhao <shuting@nirmata.com> --------- Signed-off-by: ShutingZhao <shuting@nirmata.com> |
||
---|---|---|
.. | ||
01-policies.yaml | ||
policy-1.yaml | ||
policy-2.yaml | ||
README.md |
Description
This test tries to create policies referencing target
in the trigger preconditions or context of a mutate existing rule.
Expected Behavior
Policies shoudl be rejected.
Referencing target
is only allowed in the target section of a mutate existing rule.