func (h *mutatingHandler) InjectDecoder(d *admission.Decoder) error {
	h.decoder = d
	return nil
}
InjectDecoder injects the decoder into a mutatingHandler.
package admission
import (
	"context"
	"encoding/json"
	"net/http"
	"k8s.io/apimachinery/pkg/runtime"
	"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
)
type Defaulter interface {
	Default(runtime.Object) error
}
func DefaultingWebhookFor(defaulter Defaulter, apiType runtime.Object) *admission.Webhook {
	return &admission.Webhook{
		Handler: &mutatingHandler{
			apiType:   apiType,
			defaulter: defaulter,
		},
	}
}
type mutatingHandler struct {
	apiType   runtime.Object
	defaulter Defaulter
	decoder   *admission.Decoder
}
var _ admission.DecoderInjector = &mutatingHandler{}