1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/pkg/policy
Arsh Sharma 97eaa7e854
adding any/all under match and exclude blocks (#2130)
* intial commit

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* update types

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* updated all type

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* extract to single struct

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* updated match resource description function

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* minor test working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* match resources test is working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* exclude resources test is working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* changed double negetive in logic

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* yamls updated and added validation and cache loops

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* match exclude working but need to fix matchExcludeConflict function

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* restored doMatchAndExcludeConflict function

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* rewrote the matchExcludeConflictFunction

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* finalizing completed till utils_test.go

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* ready for review complete

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* update yamls

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* one more merge conflict solved

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* regenerates YAMLs

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* possible fix for failing tests

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* removed duplicate any/all logic and added a test, (rest refacotring is in progress)

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* cache test is working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* improved cache test and it is working

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* added check for mutate and generate policies too

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* cleaned doesResourceMatchConditionBlock logic but validation still has code from attempt to combine the all block

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* reverted validate.go to older logic

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* removed commented code

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>

* removed extra comments

Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
2021-07-28 12:59:53 -07:00
..
common Enhancement/existence anchor - should loop all the items in the array (#1719) 2021-03-19 15:18:26 -07:00
generate Bug fixes - policy validation, auto-generated rules, apiCall support in mutate and generate (#1629) 2021-02-22 12:08:26 -08:00
mutate update nirmata/kyverno to kyverno/kyverno 2020-10-07 11:12:31 -07:00
validate Switch to use annotations to store resource info in cluster/reportChangeRequest (#1625) 2021-02-19 09:09:41 -08:00
actions.go update nirmata/kyverno to kyverno/kyverno 2020-10-07 11:12:31 -07:00
apply.go Enable image substitution in the background mode 2021-04-28 14:21:11 -07:00
background.go Jmespath notfound error (#1907) 2021-07-01 22:56:50 -07:00
background_test.go fix the unit test 2021-04-28 14:52:26 -07:00
common.go updating minio verison (#1956) 2021-06-09 19:16:26 -07:00
existing.go dealt with cardinality explosion (#2157) 2021-07-23 09:16:50 -07:00
report.go Cleanup Report Change Requests (#2134) 2021-07-14 09:57:16 -07:00
utils.go fixes #1399 (#1400) 2020-12-15 15:21:39 -08:00
validate.go adding any/all under match and exclude blocks (#2130) 2021-07-28 12:59:53 -07:00
validate_controller.go dealt with cardinality explosion (#2157) 2021-07-23 09:16:50 -07:00
validate_test.go adding any/all under match and exclude blocks (#2130) 2021-07-28 12:59:53 -07:00