1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/cmd/internal
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
..
check.go fix: typo in check cmd (#7733) 2023-07-02 11:40:14 +02:00
client.go refactor: move clients creation in internal package (#6924) 2023-04-14 09:00:52 +00:00
config.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
configmap.go refactor: configuration config map controller (#6829) 2023-04-11 12:05:20 +00:00
controller.go refactor: add controller helper to internal package (#5506) 2022-11-30 11:13:57 +00:00
engine.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
error.go
flag.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
imageverifycache.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
informer.go chore: add error logs in wait for cache sync helper (#6279) 2023-02-09 15:53:27 +00:00
logging.go refactor: move leader election code in internal package (#6854) 2023-04-12 01:44:49 +08:00
maxprocs.go fix: make configuring max procs not exit in case of error (#7588) 2023-06-19 16:27:00 +00:00
metrics.go refactor: configuration config map controller (#6829) 2023-04-11 12:05:20 +00:00
profiling.go refactor: move leader election code in internal package (#6854) 2023-04-12 01:44:49 +08:00
registry.go refactor: remove manual keychain refresh from client (#7806) 2023-07-11 15:19:44 +02:00
setup.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
signal.go refactor: move leader election code in internal package (#6854) 2023-04-12 01:44:49 +08:00
tracing.go fix: tracing attributes length and tracer name (#6117) 2023-01-26 09:39:52 +00:00
version.go refactor: move leader election code in internal package (#6854) 2023-04-12 01:44:49 +08:00