mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
a1ae86cdbe
* Fix JMESPath functions error message JMESPath functions `parse_yaml`, `items` and `object_from_lists` use wrong format string arguments for an error message and count the argument from 0 instead of 1. Fix the format string args and add 1 to the argument index. Also improve the error message itself. Signed-off-by: Andreas Brehmer <andreas.brehmer@sap.com> * Add JMESPath function `lookup` `lookup` allows for dynamic lookups of objects and arrays, i.e. where the key/index to look up is determined during the JMESPath query and thus cannot be injected upfront. Signed-off-by: Andreas Brehmer <andreas.brehmer@sap.com> --------- Signed-off-by: Andreas Brehmer <andreas.brehmer@sap.com> Co-authored-by: shuting <shuting@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> |
||
---|---|---|
.. | ||
arithmetic.go | ||
arithmetic_test.go | ||
error.go | ||
functionentry.go | ||
functionentry_test.go | ||
functions.go | ||
functions_test.go | ||
interface.go | ||
new.go | ||
new_test.go | ||
time.go | ||
time_test.go | ||
utils.go | ||
utils_test.go |