This webhook project is based on https://github.com/stackrox/admission-controller-webhook-demo
An implementation of k8s admission control webhook, that enables atuomatic attachement of the Elastic APM Java agent to application pods. The registered MutatingAdmissionWebhook intercepts requests to the Kubernetes API server and executes the mutating admission control webhook prior to persistence of the object, but after the request is authenticated and authorized. This allows the mutation of the originally submitted request.
The mutation is done by applying JSON patches.