1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/engine/context
Jim Bugwadia 46f02a8ba7
optimize JSON context processing using in-memory maps (#8322)
* optimize JSON context processing using in memory maps

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

* fix excessive logs

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

* fix mutate resource diff

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

* uncomment tests

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

* copy resource, as it can be modified

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

* clear prior resource to prevent mutating original

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

* linter fix

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

* fix ImageInfo to unstructured conversion

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

* fix custom image extractors

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

* do not update mutated resource in JSON context

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

* address review comments

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

---------

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Signed-off-by: shuting <shuting@nirmata.com>
Co-authored-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-12-04 07:35:36 +00:00
..
loaders optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
resolvers chore: move cache enabled label (#7949) 2023-08-01 16:28:38 +00:00
context.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
context_test.go refactor: introduce jmespath interface (#6882) 2023-04-13 11:29:40 +00:00
deferred.go fix: return error in LoadMatching (#8234) 2023-09-04 22:42:27 +00:00
deferred_test.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
evaluate.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
evaluate_test.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
fuzz_test.go Refactor fuzzing utils and add 3 fuzzers (#8555) 2023-10-05 16:33:26 +00:00
loader.go Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
mock_context.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
utils.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
utils_test.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00