1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/engine
Vishal Choudhary b385693509
feat: add basic structure for image verify cache (#7890)
* feat: add interface for image verify cache

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: add basic client for cache

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: add ttl to client

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: add flags and flag setup

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: added a default image verify cache

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: add propogation of cache to image verifier

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: add useCache to image verification types

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* bug: add ivcache to image verifier

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: add logger to cache

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* typo: DisabledImageVerfiyCache

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* typo: DisabledImageVerfiyCache

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* Update cmd/internal/flag.go

Signed-off-by: shuting <shutting06@gmail.com>

* feat: add use cache to v2beta1 crd

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* bug: change public attribute TTL to private

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* fix: replace nil in test with disabled cache

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* fix: convert ttl time to time.Duration

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: update opts to use time.Duration

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat:add policy version and remove delete functions

by adding policy version, old entries will automatically become outdated and we will not have to remove them manually

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* feat: remove clear and update get and set to take interface as input

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

* style: fix lint issue

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>

---------

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Signed-off-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-08-06 21:54:52 +02: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 feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
apicall refactor: add specific loaders from #7597 (#7671) 2023-06-26 13:31:40 +00:00
context chore: move cache enabled label (#7949) 2023-08-01 16:28:38 +00:00
factories feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
handlers feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
internal feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
jmespath fix: remove jmespath replace directive (#7726) 2023-07-07 10:22:26 +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 chore: move kyverno.io/verify-images constant (#7955) 2023-08-02 14:02:21 +00:00
validate update k8s.gcr.io to registry.k8s.io (#6340) 2023-02-20 13:40:12 +00:00
variables feat: enable operator boolean comparison (#7847) 2023-07-19 16:54:33 +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 feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02: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 feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
image_verify_test.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02: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 feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02: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 feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00