This is an automated email from the ASF dual-hosted git repository.
ronething pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
from 7399778b chore: backport ldap auth test (#2569)
add 734849a1 feat: add webhook server (#2566)
No new revisions were added by this update.
Summary of changes:
PROJECT | 27 +--
config/certmanager/certificate-metrics.yaml | 20 ++
config/certmanager/certificate-webhook.yaml | 20 ++
config/certmanager/issuer.yaml | 13 ++
config/certmanager/kustomization.yaml | 7 +
config/certmanager/kustomizeconfig.yaml | 8 +
config/crd/kustomization.yaml | 4 +-
config/default/kustomization.yaml | 211 +++++++++++----------
config/default/manager_webhook_patch.yaml | 26 +++
config/default/webhookcainjection_patch.yaml | 8 +
config/network-policy/allow-webhook-traffic.yaml | 27 +++
config/network-policy/kustomization.yaml | 2 +
config/samples/config.yaml | 12 ++
config/webhook/kustomization.yaml | 6 +
config/webhook/kustomizeconfig.yaml | 22 +++
config/webhook/manifests.yaml | 26 +++
config/webhook/service.yaml | 16 ++
internal/controller/config/config.go | 36 ++++
internal/controller/config/types.go | 15 ++
internal/manager/run.go | 31 ++-
pkg/id/idgen.go => internal/manager/webhooks.go | 21 +-
internal/provider/common/adcdebugserver.go | 2 +-
internal/webhook/v1/ingress_webhook.go | 150 +++++++++++++++
internal/webhook/v1/ingress_webhook_test.go | 121 ++++++++++++
test/e2e/framework/apisix_consts.go | 10 +
test/e2e/framework/ingress.go | 2 +
test/e2e/framework/manifests/ingress.yaml | 37 ++++
.../e2e/framework/manifests/webhook.yaml | 35 +++-
test/e2e/ingress/webhook.go | 160 ++++++++++++++++
test/e2e/scaffold/apisix_deployer.go | 6 +
test/e2e/scaffold/k8s.go | 43 +++++
test/e2e/scaffold/scaffold.go | 2 +
test/e2e/scaffold/ssl.go | 3 +-
33 files changed, 975 insertions(+), 154 deletions(-)
create mode 100644 config/certmanager/certificate-metrics.yaml
create mode 100644 config/certmanager/certificate-webhook.yaml
create mode 100644 config/certmanager/issuer.yaml
create mode 100644 config/certmanager/kustomization.yaml
create mode 100644 config/certmanager/kustomizeconfig.yaml
create mode 100644 config/default/manager_webhook_patch.yaml
create mode 100644 config/default/webhookcainjection_patch.yaml
create mode 100644 config/network-policy/allow-webhook-traffic.yaml
create mode 100644 config/network-policy/kustomization.yaml
create mode 100644 config/webhook/kustomization.yaml
create mode 100644 config/webhook/kustomizeconfig.yaml
create mode 100644 config/webhook/manifests.yaml
create mode 100644 config/webhook/service.yaml
copy pkg/id/idgen.go => internal/manager/webhooks.go (72%)
create mode 100644 internal/webhook/v1/ingress_webhook.go
create mode 100644 internal/webhook/v1/ingress_webhook_test.go
copy examples/httpbin/service-rewrite-host.yaml =>
test/e2e/framework/manifests/webhook.yaml (58%)
create mode 100644 test/e2e/ingress/webhook.go