1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/engine/jmespath
Jim Bugwadia 296578a456
create interpreter once and reuse across searches (#8299)
* create interpreter once and reuse across searches

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

* fix excessive logs

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

* refactor(jmespath): reuse fCall instead of intr

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* refactor(jmespath): use new api

Use the new JMESPath API to decouple Interpreter from FunctionCaller

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* chore: bump go-jmespath

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(jmespath): test case using older API

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

---------

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
Co-authored-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: Khaled Emara <khaled.emara@nirmata.com>
Co-authored-by: Khaled Emara <KhaledEmaraDev@gmail.com>
2023-11-30 16:59:11 +01:00
..
arithmetic.go [Feature] round() JMESPath function (#7489) 2023-07-03 19:31:54 +00:00
arithmetic_test.go create interpreter once and reuse across searches (#8299) 2023-11-30 16:59:11 +01:00
error.go [Feature] round() JMESPath function (#7489) 2023-07-03 19:31:54 +00:00
functionentry.go fix: remove jmespath replace directive (#7726) 2023-07-07 10:22:26 +00:00
functionentry_test.go fix: remove jmespath replace directive (#7726) 2023-07-07 10:22:26 +00:00
functions.go feat: Add external_url_check custom JMESPath function (#8614) 2023-11-21 04:17:26 +00:00
functions_test.go create interpreter once and reuse across searches (#8299) 2023-11-30 16:59:11 +01:00
interface.go create interpreter once and reuse across searches (#8299) 2023-11-30 16:59:11 +01:00
new.go create interpreter once and reuse across searches (#8299) 2023-11-30 16:59:11 +01:00
new_test.go create interpreter once and reuse across searches (#8299) 2023-11-30 16:59:11 +01:00
time.go feat: add more time jmespath filters (#5950) 2023-01-10 04:40:46 +00:00
time_test.go create interpreter once and reuse across searches (#8299) 2023-11-30 16:59:11 +01:00
utils.go Add JMESPath function for dynamic object/array lookup (#7136) 2023-06-19 13:45:13 +00:00
utils_test.go Add JMESPath function for dynamic object/array lookup (#7136) 2023-06-19 13:45:13 +00:00