1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/engine
Vishal Choudhary 3af0e461f0
fix: deepcopy patched resource in foreach mutate (#10252)
* fix: deepcopy patched resource to avoid indirect reversal of its elements

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: copy elements while reversing

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: copy resources inside foreach

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* add test

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* add test

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2024-05-20 14:45:21 +08:00
..
adapters chore: use sigstore/cosign 2.2.2 on main (#9179) 2023-12-18 06:41:26 +00:00
anchor fix: validate pattern premature skip (#9155) 2024-01-29 13:06:39 +00:00
api refactor: exception selector interface (#9907) 2024-03-28 08:03:01 +00:00
apicall chore(apicall): remove duplicate code (#9880) 2024-03-11 15:30:29 +08:00
context fix: add error check in jmespath type conversion in context variables (#10152) 2024-05-01 04:30:34 +00:00
factories feat: add globalcontext loader and interface (#9602) 2024-02-05 11:24:37 +00:00
handlers fix: deepcopy patched resource in foreach mutate (#10252) 2024-05-20 14:45:21 +08:00
internal feat: add TSA cert chain support in cosign (#9961) 2024-03-30 20:50:07 +00:00
jmespath fix: policy status reconciliation (#10032) 2024-04-12 07:08:15 +00:00
jsonutils optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
mutate fix(autogen): only generate rule for request kind (#9984) 2024-04-04 08:09:30 +00:00
operator fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
pattern chore: move utils/wildcard in ext (#8772) 2023-10-29 23:59:53 +00:00
policycontext fix: shared policy context needs to be copied (#10139) 2024-04-30 14:05:33 +00:00
resources refactor: introduce engine handler (#6680) 2023-03-24 16:24:00 +00:00
utils fix: deepcopy patched resource in foreach mutate (#10252) 2024-05-20 14:45:21 +08:00
validate fix: validate pattern premature skip (#9155) 2024-01-29 13:06:39 +00:00
variables [Bug] Enabling many-to-one comparisons for AnyNotIn operator (#9462) 2024-04-22 12:12:08 +00:00
wildcards chore: move utils/wildcard in ext (#8772) 2023-10-29 23:59:53 +00:00
attestation_test.go Conditions message (#7113) 2023-05-08 15:34:23 +08:00
background.go fix(autogen): only generate rule for request kind (#9984) 2024-04-04 08:09:30 +00:00
engine.go fix: remove deprecated imageSignatureRepository flag (#9698) 2024-02-08 12:10:29 +00:00
exceptions.go fix: polex mem footprint (#9954) 2024-03-28 09:31:40 +00:00
forceMutate.go refactor: remove json patches from engine response (#7449) 2023-06-07 17:45:11 +08:00
forceMutate_test.go refactor: introduce jmespath interface (#6882) 2023-04-13 11:29:40 +00:00
fuzz_test.go fix(autogen): only generate rule for request kind (#9984) 2024-04-04 08:09:30 +00:00
generation.go fix(autogen): only generate rule for request kind (#9984) 2024-04-04 08:09:30 +00:00
image_verify.go fix(autogen): only generate rule for request kind (#9984) 2024-04-04 08:09:30 +00:00
image_verify_test.go fix: remove deprecated imageSignatureRepository flag (#9698) 2024-02-08 12:10:29 +00:00
metrics.go fix: change generic policy to not return any (#9463) 2024-01-20 19:20:22 +02:00
mutation.go fix(autogen): only generate rule for request kind (#9984) 2024-04-04 08:09:30 +00:00
mutation_test.go fix: remove deprecated imageSignatureRepository flag (#9698) 2024-02-08 12:10:29 +00:00
policy_context.go refactor: hide json context from caller (#7139) 2023-05-12 14:14:48 +00:00
validation.go fix(autogen): only generate rule for request kind (#9984) 2024-04-04 08:09:30 +00:00
validation_test.go fix: remove deprecated imageSignatureRepository flag (#9698) 2024-02-08 12:10:29 +00:00