1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 23:46:56 +00:00
kyverno/pkg/engine
shuting 637f830917
feat: apply generate rules on trigger events (#6508)
* - fire generation on trigger deletion, with condition rules;
- delete downstream if trigger no longer matches;
- delete downstream if trigger is deleted, with sync rule

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

* trim condition key spaces

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

* fix UR spec

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

* add a kuttl test cpol-create-on-trigger-deletion

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

* add a kuttl test cpol-create-on-trigger-deletion

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

* add a kuttl test cpol-data-sync-delete-trigger

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

* add a kuttl test cpol-data-nosync-delete-trigger

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

* add a kuttl test cpol-data-sync-update-trigger-no-match

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

* rename policy

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

* add a kuttl test cpol-data-nosync-update-trigger-no-match

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

* fix

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

* add debug logs

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

* add a kuttl test cpol-clone-create-on-trigger-deletion

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

* update readme

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

* fix

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

* add a kuttl test cpol-clone-sync-delete-trigger

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

* add a kuttl test cpol-clone-nosync-delete-trigger

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

* add a kuttl test cpol-clone-sync-update-trigger-no-match

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

* update readme

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

* add a kuttl test cpol-clone-nosync-update-trigger-no-match

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

---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-03-10 17:17:10 +00:00
..
anchor Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
api feat: apply generate rules on trigger events (#6508) 2023-03-10 17:17:10 +00:00
apicall refactor: improve engine logger management (#6280) 2023-02-09 15:15:51 +00:00
context refactor: remove MutateResourceWithImageInfo (#6397) 2023-02-27 13:45:00 +00:00
internal Notary v2 (#6011) 2023-02-20 16:26:10 +00:00
jmespath #6055 Add JMESPath support to imageExtractors (#6183) 2023-02-08 11:54:59 +00:00
jsonutils refactor: move util funcs in sub packages (#5754) 2022-12-22 06:39:54 +00:00
mutate refactor: make engine stats standard fields (#6301) 2023-02-10 11:35:55 -08:00
operator fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
pattern test: add pattern pkg unit tests (#6277) 2023-02-10 14:17:36 +08:00
resources Yaml signing and verification (#4235) 2022-08-30 10:14:54 -07:00
test refactor: reduce store dependency in engine pkg (#6260) 2023-02-08 13:19:56 +00:00
utils refactor: merge engine common and utils packages (#6160) 2023-01-30 18:26:35 +00:00
validate update k8s.gcr.io to registry.k8s.io (#6340) 2023-02-20 13:40:12 +00:00
variables feat: apply generate rules on trigger events (#6508) 2023-03-10 17:17:10 +00:00
wildcards Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
attestation_test.go refactor: improve engine logger management (#6280) 2023-02-09 15:15:51 +00:00
background.go fix: namespace matching for background namespaced policies (#6530) 2023-03-10 13:55:08 +00:00
common.go refactor: move client out of policy context (#6233) 2023-02-07 15:09:15 +00:00
common_test.go refactor: move client out of policy context (#6233) 2023-02-07 15:09:15 +00:00
engine.go refactor: improve engine logger management (#6280) 2023-02-09 15:15:51 +00:00
exceptions.go refactor: user/groups exclusions (#6357) 2023-02-22 10:08:41 +00:00
forceMutate.go refactor: improve engine logger management (#6280) 2023-02-09 15:15:51 +00:00
forceMutate_test.go refactor: improve engine logger management (#6280) 2023-02-09 15:15:51 +00:00
generation.go refactor: make engine stats standard fields (#6301) 2023-02-10 11:35:55 -08:00
imageVerify.go Notary v2 (#6011) 2023-02-20 16:26:10 +00:00
imageVerify_test.go refactor: improve engine logger management (#6280) 2023-02-09 15:15:51 +00:00
imageVerifyValidate.go refactor: add a few response helpers in engine internal (#6262) 2023-02-09 13:39:38 +00:00
k8smanifest.go refactor: add a few response helpers in engine internal (#6262) 2023-02-09 13:39:38 +00:00
k8smanifest_test.go refactor: move client out of policy context (#6233) 2023-02-07 15:09:15 +00:00
loadtargets.go refactor: move client out of policy context (#6233) 2023-02-07 15:09:15 +00:00
loadtargets_test.go Load mutate.targets via dclient (#3797) 2022-05-06 05:46:36 +00:00
mutation.go fix: cascading mutations (#6411) 2023-02-27 18:33:07 +01:00
mutation_test.go refactor: remove MutateResourceWithImageInfo (#6397) 2023-02-27 13:45:00 +00:00
policyContext.go refactor: move client out of policy context (#6233) 2023-02-07 15:09:15 +00:00
utils.go fix: remove dynamic config from match helpers (#6381) 2023-02-23 15:28:52 +01:00
utils_test.go fix: do not pass dynamicConfig to matchesResourceDescriptionMatchHelper (#6231) (#6242) 2023-02-08 08:08:09 +00:00
validation.go refactor: user/groups exclusions (#6357) 2023-02-22 10:08:41 +00:00
validation_test.go refactor: reduce store dependency in engine pkg (#6260) 2023-02-08 13:19:56 +00:00