1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/test/conformance/kuttl/policy-validation/cluster-policy/target-context
shuting 4d5f832d01
fix mutate targets validation (#7387)
* 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>
2023-06-02 15:06:01 +02:00
..
01-policies.yaml fix mutate targets validation (#7387) 2023-06-02 15:06:01 +02:00
policy-1.yaml fix mutate targets validation (#7387) 2023-06-02 15:06:01 +02:00
policy-2.yaml feat: add context/preconditions support to mutate existing (#6754) 2023-04-03 19:58:58 +00:00
README.md feat: add context/preconditions support to mutate existing (#6754) 2023-04-03 19:58:58 +00:00

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.