1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/scripts/config
Khaled Emara fb40aa5f38
feat(audit): use a worker pool for Audit policies (#10048)
* enhancement: split validation logic for enforce and audit policies to return admission response earlier

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

* chore: add missing file

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

* fix: unit tests

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

* fix: linter issues

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

* fix: unit tests

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

* fix: get latest policy object before updating status

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

* chore: remove debug code

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

* fix: compare before updates

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

* fix: initial reconcile

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

* fix: updates

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

* feat(audit): use a worker pool for Audit policies

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

* fix: unit test

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

* fix(attempt): spin up go routine

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

* feat: add flags maxAuditWorkers, maxAuditCapacity

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

* fix: enable debug log on failure

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

* fix: wait group panic

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

* load-tests: add stess tests configurations

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

* load-tests: disable admissionreports

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

* fix: build policy contexts syncronously

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: only run generate and mutate existing go routines when policies are present

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: mutate and verify tests

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: return early if no audit policy

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

* fix: run handlegenerate and mutate existing in all cases

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: only test bgapplies in generate test

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: defer wait in tests

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* enhancement: process validate enforce in a go routine

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

---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2024-04-17 15:46:18 +08:00
..
custom-sigstore fix: make tuf feature in chart consistent with others (#8542) 2023-09-27 13:03:17 +00:00
default chore: add kuttl tests with default config (#6847) 2023-04-11 12:50:53 +00:00
default-with-profiling ci: add load testing workflow (#9515) 2024-01-29 12:30:51 +00:00
dev chore: add otel collector to dev lab (#8106) 2023-08-24 13:04:01 +00:00
exceptions-disabled feat: add features section in helm values (#6935) 2023-04-25 11:23:01 +00:00
force-failure-policy-ignore feat: add features section in helm values (#6935) 2023-04-25 11:23:01 +00:00
generate-validating-admission-policy feat: generate validating admission policies and their bindings from Kyverno policies (#7840) 2023-08-31 10:25:21 +00:00
kind ci: add load testing workflow (#9515) 2024-01-29 12:30:51 +00:00
kube-apiserver chore: add kind config with kubelet and apiserver tracing (#8105) 2023-08-24 09:10:02 +00:00
kwok chore: add makefile target for kwok (#7097) 2023-05-05 13:41:37 +08:00
standard chore(helm): omit normal events by default (#9493) 2024-01-24 13:16:18 +01:00
stress-with-profiling feat(audit): use a worker pool for Audit policies (#10048) 2024-04-17 15:46:18 +08:00
ttl feat: add ttl controller (#7821) 2023-08-02 16:47:40 +02:00
validating-admission-policy-reports feat: add kuttl tests for validating admission policy backgroundscan reports (#8292) 2023-09-07 02:22:12 +00:00