1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/pkg/policy
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
..
common fix messages and tests 2021-10-03 03:15:22 -07:00
generate Bug fixes - policy validation, auto-generated rules, apiCall support in mutate and generate (#1629) 2021-02-22 12:08:26 -08:00
mutate update nirmata/kyverno to kyverno/kyverno 2020-10-07 11:12:31 -07:00
validate fix messages and tests 2021-10-03 03:15:22 -07:00
actions.go add validation; add 'element' to context 2021-10-02 16:53:02 -07:00
apply.go implement validate.foreach 2021-09-26 02:12:31 -07:00
background.go Fix No warning about background mode when using any / all in match 2021-09-29 11:02:48 +05:30
background_test.go fix the unit test 2021-04-28 14:52:26 -07:00
common.go updating minio verison (#1956) 2021-06-09 19:16:26 -07:00
existing.go Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
metrics.go Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
policy_controller.go Dynamic webhooks (#2425) 2021-10-05 00:15:09 -07:00
report.go implement validate.foreach 2021-09-26 02:12:31 -07:00
utils.go fixes #1399 (#1400) 2020-12-15 15:21:39 -08:00
validate.go Validate GVK while installing policy & Fix any/all matching logic (#2458) 2021-10-04 12:00:57 -07:00
validate_test.go adding any/all under match and exclude blocks (#2130) 2021-07-28 12:59:53 -07:00