1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/pkg/engine
SukhveerS 998a14c660
[Feature] round() JMESPath function (#7489)
* adding roundoff

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* removing unnecessary

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* adding test

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* adding edge case

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* fixing error

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* updating function call

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* updating function jpRound

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* error handling negative

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* fix

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>

* fix linter

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* parsing

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* cleanup

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix tests

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Rexbeast2 <ssukhveer514@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-07-03 19:31:54 +00:00
..
adapters Enable flexible registry credential configurations (#7114) 2023-06-16 13:37:08 +00:00
anchor Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
api Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
apicall refactor: add specific loaders from #7597 (#7671) 2023-06-26 13:31:40 +00:00
context Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
factories Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
handlers fix: Result not correct when testing a mutate rule and foreach. (#7396) 2023-06-19 12:06:50 +00:00
internal fix: image verification (#7652) 2023-06-27 07:31:02 +00:00
jmespath [Feature] round() JMESPath function (#7489) 2023-07-03 19:31:54 +00:00
jsonutils refactor: move util funcs in sub packages (#5754) 2022-12-22 06:39:54 +00:00
mutate feat: switch json patch lib for real (#7452) 2023-06-08 10:23:20 +00:00
operator fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
pattern fix: abort validation if value could be processed (#7307) 2023-06-06 14:41:20 +00:00
policycontext Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
resources refactor: introduce engine handler (#6680) 2023-03-24 16:24:00 +00:00
utils fix ns selector (#6887) 2023-04-13 08:17:28 +00:00
validate update k8s.gcr.io to registry.k8s.io (#6340) 2023-02-20 13:40:12 +00:00
variables fix: reduce number of queries to detect delete operations (#7620) 2023-06-21 07:59:54 +00:00
wildcards fix: add type conversion error judgment to avoid program panic (#6526) 2023-06-14 14:24:45 +00:00
attestation_test.go Conditions message (#7113) 2023-05-08 15:34:23 +08:00
background.go fix: Delete downstream objects on precondition fail (#7496) 2023-06-15 11:32:19 -04:00
engine.go Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
exceptions.go fix: exceptions not considered on delete (#7433) 2023-06-06 22:15:10 +08: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
generation.go refactor: don't process context/preconditions in invokeHandler (#6751) 2023-04-03 12:57:48 +08:00
image_verify.go Enable flexible registry credential configurations (#7114) 2023-06-16 13:37:08 +00:00
image_verify_test.go Enable flexible registry credential configurations (#7114) 2023-06-16 13:37:08 +00:00
metrics.go chore: bump otel deps (#7152) 2023-05-11 10:16:48 +00:00
mutation.go refactor: policy response (#6877) 2023-04-12 16:20:42 +00:00
mutation_test.go Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
policy_context.go refactor: hide json context from caller (#7139) 2023-05-12 14:14:48 +00:00
validation.go feat: support cel expression in validate rules (#7070) 2023-05-31 14:30:55 -07:00
validation_test.go Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00