1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-01-20 18:52:16 +00:00
kyverno/pkg
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
..
api adding any/all under match and exclude blocks (#2130) 2021-07-28 12:59:53 -07:00
auth Fix Kyverno crash when CRD is not installed (#1353) 2020-12-03 19:19:36 -08:00
backward_compatibility generate refactorings 2021-01-04 15:19:06 +05:30
client Feature/cosign (#2078) 2021-07-09 18:01:46 -07:00
common Feature/cosign (#2078) 2021-07-09 18:01:46 -07:00
config Configurable success events on policies & resources. Generating failure events on policies by default. (#1939) 2021-06-29 14:43:11 -07:00
cosign fmt and improve error messages 2021-07-20 20:28:11 -07:00
dclient moving to error info log 2021-07-21 13:39:07 +05:30
engine adding any/all under match and exclude blocks (#2130) 2021-07-28 12:59:53 -07:00
event Configurable success events on policies & resources. Generating failure events on policies by default. (#1939) 2021-06-29 14:43:11 -07:00
generate deprecate policy status (#2136) 2021-07-14 12:18:59 -07:00
kyverno fix test command issue 2021-07-28 22:12:01 +05:30
leaderelection feat: HA (#1931) 2021-06-08 12:37:19 -07:00
metrics dealt with cardinality explosion (#2157) 2021-07-23 09:16:50 -07:00
openapi Update to use gvk to store OpenAPI schema (#1906) 2021-05-13 12:03:13 -07:00
policy adding any/all under match and exclude blocks (#2130) 2021-07-28 12:59:53 -07:00
policycache adding any/all under match and exclude blocks (#2130) 2021-07-28 12:59:53 -07:00
policymutation Feature/cosign (#2078) 2021-07-09 18:01:46 -07:00
policyreport deprecate policy status (#2136) 2021-07-14 12:18:59 -07:00
resourcecache Remove secret from default resourceCache (#1878) 2021-05-04 22:10:01 -07:00
signal 420 init container (#501) 2019-11-18 11:41:37 -08:00
testrunner Configurable success events on policies & resources. Generating failure events on policies by default. (#1939) 2021-06-29 14:43:11 -07:00
tls feat: HA (#1931) 2021-06-08 12:37:19 -07:00
userinfo fixes for golint ./... 2020-11-17 13:07:30 -08:00
utils updating minio verison (#1956) 2021-06-09 19:16:26 -07:00
version Revert "754 merge conflicts" 2020-03-28 16:36:19 +05:30
webhookconfig fix typo 2021-07-20 09:31:52 -07:00
webhooks dealt with cardinality explosion (#2157) 2021-07-23 09:16:50 -07:00