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
Ved Ratan 893c22b96b
[Feature] The ability to sum quantities (#6552)
* implemented array sum functionality

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* provided tests and fixed some bugs

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* added sum functionality

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* fixed sonatype liftbot issue

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* restructured the code implementation

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* added helper errors

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* removed commented codes

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* modified error message

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* applied requested changes

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* removed some more comments

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* added more tests

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

* fixed linter issues

Signed-off-by: Ved Ratan <vedratan8@gmail.com>

---------

Signed-off-by: Ved Ratan <vedratan8@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-03-23 08:59:05 +00:00
..
arithmetic.go fix: add tests for jp arithmetic funcs (#6240) 2023-02-06 15:01:39 +00:00
arithmetic_test.go [Feature] The ability to sum quantities (#6552) 2023-03-23 08:59:05 +00:00
error.go fix: add tests for jp arithmetic funcs (#6240) 2023-02-06 15:01:39 +00:00
functionentry.go chore: add a few unit tests for jp functions (#6219) 2023-02-06 06:27:27 +00:00
functionentry_test.go chore: add a few unit tests for jp functions (#6219) 2023-02-06 06:27:27 +00:00
functions.go [Feature] The ability to sum quantities (#6552) 2023-03-23 08:59:05 +00:00
functions_test.go Added JMESPath filter to_boolean() (#6292) 2023-03-16 12:52:26 +00:00
new.go fix: add more jp unit tests and check for out of bounds argument (#6230) 2023-02-06 11:39:53 +00:00
new_test.go test: add a couple unit tests (#6202) 2023-02-03 05:37:31 +00:00
time.go feat: add more time jmespath filters (#5950) 2023-01-10 04:40:46 +00:00
time_test.go fix: add more jp unit tests and check for out of bounds argument (#6230) 2023-02-06 11:39:53 +00:00
utils.go Added JMESPath filter to_boolean() (#6292) 2023-03-16 12:52:26 +00:00