1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/pkg
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
..
auth fix: auth checks with the APIVersion and the subresource (#7628) 2023-06-22 14:14:06 +00:00
autogen chore: organize constants better (#7941) 2023-07-31 11:53:57 +00:00
background feat: Add support for server-side-apply in generate rules (#7705) 2023-08-02 17:59:37 +00:00
client feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
clients feat: Add support for server-side-apply in generate rules (#7705) 2023-08-02 17:59:37 +00:00
config feat: add ttl controller (#7821) 2023-08-02 16:47:40 +02:00
controllers fix: ttl manager stop informer on error (#7966) 2023-08-03 17:53:52 +00:00
cosign bug: fix nancy by removing tekton payload from cosign test (#7841) 2023-07-18 05:58:47 +00:00
engine feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
event feat: migrate to events.k8s.io/v1 (#7673) 2023-07-26 14:06:51 +00:00
images refactor: remove manual keychain refresh from client (#7806) 2023-07-11 15:19:44 +02:00
imageverifycache feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
informers fix: factorise confimap informer code (#7667) 2023-06-28 04:43:16 +00:00
leaderelection Remove dependency on github.com/pkg/errors (#6165) 2023-02-01 14:38:04 +08:00
logging fix log level (#7877) 2023-07-21 15:41:29 +00:00
metrics fix: use golang builtin version management (#7654) 2023-06-30 23:27:06 +00:00
notary test: add tests for ghcr private repository (#7791) 2023-07-31 11:12:24 +00:00
openapi feat: skip schema validation for CRD (#7869) 2023-07-20 22:02:27 +00:00
policy feat: migrate to events.k8s.io/v1 (#7673) 2023-07-26 14:06:51 +00:00
policycache refactor: introduce pss validation handler (#6724) 2023-03-30 09:51:16 +00:00
profiling refactor: introduce cmd internal package (#5404) 2022-11-18 22:21:15 +08:00
pss fix latest version check (#7263) 2023-05-23 15:38:41 +00:00
registryclient feat: update default keychain in registry to be empty (#7906) 2023-07-28 01:08:22 +00:00
tls chore: move cert.kyverno.io/managed-by label in constants (#7942) 2023-07-31 16:17:51 +03:00
toggle feat: add lazy loading feature flag (#7680) 2023-06-27 13:44:15 +08:00
tracing fix: use golang builtin version management (#7654) 2023-06-30 23:27:06 +00:00
userinfo refactor: reduce userinfos deps and add unit tests (#6524) 2023-03-10 09:09:19 +00:00
utils refactor: ttl label validation (#7960) 2023-08-03 12:48:10 +08:00
validatingadmissionpolicy refactor validating admission policies (#7835) 2023-07-27 17:32:30 -07:00
validation refactor: ttl label validation (#7960) 2023-08-03 12:48:10 +08:00
version fix: use golang builtin version management (#7654) 2023-06-30 23:27:06 +00:00
webhooks feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00