1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/conformance/kuttl/generate/validation/policy/prevent-loop
shuting 3db7c41a62
Remove policy validation prevent loop for generate (#7388)
* remove checks

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* update tests

Signed-off-by: ShutingZhao <shuting@nirmata.com>

---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-06-02 13:53:16 +02:00
..
01-ns.yaml Remove policy validation prevent loop for generate (#7388) 2023-06-02 13:53:16 +02:00
02-pass.yaml Remove policy validation prevent loop for generate (#7388) 2023-06-02 13:53:16 +02:00
policy.yaml Remove policy validation prevent loop for generate (#7388) 2023-06-02 13:53:16 +02:00
README.md Remove policy validation prevent loop for generate (#7388) 2023-06-02 13:53:16 +02:00

Description

This test ensures that a generate policy is allowed to have the same kind defined in the trigger and the target resources. The flag --backgroundServiceAccountName was added to prevent endless loop.

Expected Behavior

The test passes if the policy creation is allowed, otherwise fails.

Reference Issue(s)

https://github.com/kyverno/kyverno/issues/7280