func (in *PodHttpChaos) SetupWebhookWithManager(mgr ctrl.Manager) error {
	mgr.GetWebhookServer().
		Register("/mutate-chaos-mesh-org-v1alpha1-podhttpchaos", &webhook.Admission{Handler: &PodHttpChaosWebhookRunner{}})
	return nil
}
SetupWebhookWithManager setup PodHttpChaos's webhook with manager
package v1alpha1
import (
	"context"
	"encoding/json"
	"net/http"
	ctrl "sigs.k8s.io/controller-runtime"
	logf "sigs.k8s.io/controller-runtime/pkg/log"
	"sigs.k8s.io/controller-runtime/pkg/webhook"
	"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
)
var podhttpchaoslog = logf.Log.WithName("rawpodhttp-resource")
type PodHttpChaosHandler interface {
	Apply(context.Context, *PodHttpChaos) (int32, error)
}
var podHttpChaosHandler PodHttpChaosHandler
func RegisterPodHttpHandler(newHandler PodHttpChaosHandler) {
	podHttpChaosHandler = newHandler
}