1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg
Khaled Emara 2b2587469d
feat: enhance global context (#9710)
* feat(globalcontext): add event handling

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* feat(globalcontext): handle cache sync error

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* feat(globalcontext): ensure api is called during init

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* design(events): decouple events from policies a bit

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* feat(globalcontext): use status

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): make status optional

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): status update

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): codegen

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* chore(globalcontext): delete yaml annotations

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): fix status in tests

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcotext): update enqueue func

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): error

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* chore(globalcontext): rbac

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* chore(globalcontext): retry logic

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): unknown api call in test

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* bump

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix: set unique name for each testing resource

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: update readme

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: log msg

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: add delays

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: delay gctce creation

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* debug: check Kyverno status

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* debug: update chainsaw config

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* debug: revert chainsaw config

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* test(globalcontext): print actual status

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): add necessary delays and check status before applying

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* test(globalcontext): long refreshInterval

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* debug: log success

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* debug: print informer data

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): use client instead of informer

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* debug: print status after update

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* debug: print ResourceVersion

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* debug: remove gcecontroller from other controllers

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): update status only once

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* chore: remove excess logs

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): add store to cleanup controller

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

---------

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-02-23 10:34:04 +00:00
..
auth feat: support authorizer variable in CEL expressions (#8024) 2023-09-05 10:16:50 +00:00
autogen feat: support validatingadmissionpolicybindings in CLI apply command (#9468) 2024-01-23 11:47:38 +00:00
background fix: clean up URs if the trigger doesn't exist (#9355) 2024-01-09 10:30:31 +01:00
client feat: add globalcontext loader and interface (#9602) 2024-02-05 11:24:37 +00:00
clients feat: add global context crd (#9591) 2024-02-01 10:58:31 +00:00
config feat: add global context entry validation webhook (#9619) 2024-02-02 18:04:50 +01:00
controllers feat: enhance global context (#9710) 2024-02-23 10:34:04 +00:00
cosign chore(deps): bump github.com/sigstore/cosign/v2 from 2.2.2 to 2.2.3 (#9600) 2024-02-01 15:50:24 +00:00
engine Fix :variables are not getting processed in validation message for "anyPattern" (#9713) 2024-02-21 07:20:43 +00:00
event feat: enhance global context (#9710) 2024-02-23 10:34:04 +00:00
globalcontext feat: enhance global context (#9710) 2024-02-23 10:34:04 +00:00
images Reduce deps (#8654) 2023-11-09 13:04:24 +00:00
imageverifycache feat: update descriptions of image verify cache flags (#8770) 2023-11-02 16:10:17 +00: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 chore: default logging format to rfc3339 (#9775) 2024-02-23 10:01:42 +00:00
metrics chore: bump otel deps (#9442) 2024-01-19 09:36:28 +00:00
notary Reduce deps (#8654) 2023-11-09 13:04:24 +00:00
policy fix: add validation check for podSecurity subrule (#9770) 2024-02-23 15:16:53 +08:00
policycache chore: move utils/wildcard in ext (#8772) 2023-10-29 23:59:53 +00:00
profiling refactor: introduce cmd internal package (#5404) 2022-11-18 22:21:15 +08:00
pss [Bug] Fix message and formatting of podSecurity validation failure with restrictedField (#9658) 2024-02-08 12:16:23 +08:00
registryclient feat: use awslabs keychain for AWS and gcr keychain for GCP (#9416) 2024-01-29 08:25:52 +00:00
tls chore: set cert renewal time to 15 days before expiration (#8567) 2023-12-06 13:37:01 +00:00
toggle fix: display a message when the controller has no permissions for VAPs (#8776) 2023-11-01 21:52:03 +08:00
tracing chore: bump otel deps (#9442) 2024-01-19 09:36:28 +00:00
userinfo refactor: reduce userinfos deps and add unit tests (#6524) 2023-03-10 09:09:19 +00:00
utils fix: reports aggregation (#9697) 2024-02-08 10:36:01 +00:00
validatingadmissionpolicy feat: apply VAP bindings in CLI apply command in offline mode (#9751) 2024-02-21 07:52:25 +00:00
validation feat: enhance global context (#9710) 2024-02-23 10:34:04 +00:00
version fix: use golang builtin version management (#7654) 2023-06-30 23:27:06 +00:00
webhooks feat: enhance global context (#9710) 2024-02-23 10:34:04 +00:00