1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/pkg
shuting b10947b975
Dynamic webhooks (#2425)
* support k8s 1.22, update admissionregistration.k8s.io/v1beta1  to admissionregistration.k8s.io/v1

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

* - add failurePolicy to policy spec; - fix typo

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

* - add schema validation for failurePolicy; - add a printer column

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

* set default failure policy to fail if not defined

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

* resolve conflicts

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

* fix missing type for printerColumn

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

* refactor policy controller

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

* add webhook config manager

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

* - build webhook objects per policy update; - add fail webhook to default webhook configurations

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

* fix panic on policy update

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

* build default webhook: match empty if autoUpdateWebhooks is enabled, otherwise match all

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

* - set default webhook configs rule to empty; - handle policy deletion

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

* reset webhook config if policies with a specific failurePolicy are cleaned up

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

* handle wildcard pocliy

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

* update default webhook timeout to 10s

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

* cleanups

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

* added webhook informer to re-create it immediately if missing

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

* update tag webhookTimeoutSeconds description

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

* fix e2e tests

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

* fix linter issue

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

* correct metric endpoint

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

* add pol.generate.kind to webhooks

Signed-off-by: ShutingZhao <shutting06@gmail.com>
2021-10-05 00:15:09 -07:00
..
api Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
auth Fix Kyverno crash when CRD is not installed (#1353) 2020-12-03 19:19:36 -08:00
backward_compatibility generate refactorings 2021-01-04 15:19:06 +05:30
client Update PolicyReport CRDs to wgpolicyk8s.io/v1alpha2 (#1825) 2021-08-21 10:35:17 -07:00
common Dynamic process of GVK 2021-09-02 12:40:40 +05:30
config Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
cosign allow alternate image repositories (#2393) 2021-09-16 16:11:38 -07:00
dclient Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
engine Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
event Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
generate Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
kyverno fix deployment-missing-labels test 2021-10-03 22:36:06 -07:00
leaderelection feat: HA (#1931) 2021-06-08 12:37:19 -07:00
metrics Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
openapi Openapi validation should not fail if patchesJson6902 appends to list (#2340) 2021-09-16 12:40:56 -07:00
policy Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
policycache Dynamic process of GVK 2021-09-02 12:40:40 +05:30
policymutation Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
policyreport fix reporting 2021-10-03 01:31:05 -07:00
resourcecache Remove secret from default resourceCache (#1878) 2021-05-04 22:10:01 -07:00
signal Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
testrunner Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
tls feat: HA (#1931) 2021-06-08 12:37:19 -07:00
userinfo fixes for golint ./... 2020-11-17 13:07:30 -08:00
utils updating minio verison (#1956) 2021-06-09 19:16:26 -07:00
version Revert "754 merge conflicts" 2020-03-28 16:36:19 +05:30
webhookconfig Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
webhooks Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00