1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/test
Mike Bryant 91021b65b6
fix: Delete downstream objects on precondition fail (#7496)
* fix: Delete downstream objects on precondition fail

When a rule fails the match in a generate rule, the downstream resource gets deleted. This will now also happen if the rule is skipped due to a precondition.

Signed-off-by: Mike Bryant <mike.bryant@mettle.co.uk>

* add debug command

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

* sync trigger updates to downstream

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

* fix bgscan fetching trigger

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

* fix: Move rbac change into tests for better isolation

Signed-off-by: Mike Bryant <mike.bryant@mettle.co.uk>

* fix unit test

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

---------

Signed-off-by: Mike Bryant <mike.bryant@mettle.co.uk>
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-06-15 11:32:19 -04:00
..
best_practices Fix: namespace quota policy failed to be applied for two resources named ResourceQuota with different APIVersions (#2612) 2022-01-20 12:48:52 +05:30
cli fix: target scope validation for the generate rule (#7479) 2023-06-13 10:26:56 +00:00
conformance/kuttl fix: Delete downstream objects on precondition fail (#7496) 2023-06-15 11:32:19 -04:00
more fix policy typo (#4039) 2022-05-31 06:28:02 +00:00
openshift fix: allow policies from stdin in apply again (#5668) 2022-12-16 13:50:15 +00:00
output move from k8s.gcr.io to registry.k8s.io (#6263) 2023-02-09 00:09:15 +08:00
policy Support PSa integration by controlName only (#4710) 2022-09-28 10:03:53 +00:00
resources move from k8s.gcr.io to registry.k8s.io (#6263) 2023-02-09 00:09:15 +08:00
scenarios [Bugbash] Kceu22 bugbash/fix staticcheck warnings (#3917) 2022-05-14 22:04:35 +01:00