You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by zh...@apache.org on 2023/04/07 09:00:00 UTC
[apisix-ingress-controller] branch master updated (eb019076 -> 97f9ef90)
This is an automated email from the ASF dual-hosted git repository.
zhangjintao pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
from eb019076 docs: describe how to generate secret from cert file (#1769)
add 97f9ef90 feat: support webhook validate plugin (#1355)
No new revisions were added by this update.
Summary of changes:
Makefile | 3 +
cmd/ingress/ingress.go | 1 +
pkg/api/router/webhook.go | 10 +-
pkg/api/server.go | 50 +++---
pkg/api/validation/apisix_consumer.go | 77 --------
.../validation/apisix_plugin_config.go} | 21 +--
pkg/api/validation/apisix_route.go | 115 +-----------
pkg/api/validation/apisix_route_test.go | 4 +-
pkg/api/validation/apisix_tls.go | 77 --------
pkg/api/validation/apisix_upstream.go | 77 --------
pkg/api/validation/utils.go | 28 ++-
pkg/api/validation/validator.go | 100 +++++++++++
pkg/config/config.go | 2 +
samples/deploy/admission/webhook-certs.yaml | 9 +-
samples/deploy/admission/webhook-registration.yaml | 32 ++--
samples/deploy/admission/webhook-service.yaml | 4 +-
test/e2e/scaffold/ingress.go | 199 +++++++++------------
test/e2e/scaffold/scaffold.go | 32 ++--
.../suite-ingress-features/webhook.go | 165 +++++++++++++----
test/e2e/testdata/webhook-create-cert.sh | 145 +++++++++++++++
test/e2e/testdata/webhook-create-signed-cert.sh | 152 ----------------
21 files changed, 579 insertions(+), 724 deletions(-)
delete mode 100644 pkg/api/validation/apisix_consumer.go
copy pkg/{types/event_test.go => api/validation/apisix_plugin_config.go} (65%)
delete mode 100644 pkg/api/validation/apisix_tls.go
delete mode 100644 pkg/api/validation/apisix_upstream.go
create mode 100644 pkg/api/validation/validator.go
create mode 100644 test/e2e/testdata/webhook-create-cert.sh
delete mode 100644 test/e2e/testdata/webhook-create-signed-cert.sh