1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/cmd/internal
Amit kumar 6d8ae16afa
added verify image ristretto cache implementation (#7969)
* updated flags

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added ristretto_cache impl

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added bufferSize

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* small nits

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* made cache as private member

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* made cache as private member

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added logger.withValues

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added verify image cache

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* small nits

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added cache tests

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* fixed lint issue

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added chaged policy test

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* cache time should be entered in minutes

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed cache.wait()

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* small nits

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed client.go logs and added in imageVerifier

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added level to the logs

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added notary image cache verification

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* replace intVar by flag.DurationVar()

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed lock from cache clinet

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* updated cosign tests

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added execution latencies comparision

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added assert.Error()

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added error assertion util

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added error log

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* Update pkg/engine/internal/imageverifier.go

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

* lint fixes

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed logs from unit tests

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added ristretto_cache impl

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed cache.wait()

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* small nits

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added asssertions in tests

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* fixed conflicts

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* lint fix

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* renamed variabls

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

---------

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>
Signed-off-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-08-30 07:26:40 +00: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 refactor: introduce cmd internal package (#5404) 2022-11-18 22:21:15 +08:00
flag.go added verify image ristretto cache implementation (#7969) 2023-08-30 07:26:40 +00:00
imageverifycache.go added verify image ristretto cache implementation (#7969) 2023-08-30 07:26:40 +00: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