From a25f78f9aa49dddf6eb269c0252ea7d973c70dab Mon Sep 17 00:00:00 2001 From: JessicaGreben Date: Fri, 20 Dec 2024 13:41:48 -0800 Subject: [PATCH] update the admission.Decoder is an interface now --- api/v1/mutating_webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/mutating_webhook.go b/api/v1/mutating_webhook.go index 599c614cb..40d1b071c 100644 --- a/api/v1/mutating_webhook.go +++ b/api/v1/mutating_webhook.go @@ -9,11 +9,11 @@ import ( type mutatingHandler struct { // aeroCluster *AerospikeCluster - decoder *admission.Decoder + decoder admission.Decoder } // InjectDecoder injects the decoder into a mutatingHandler. -func (h *mutatingHandler) InjectDecoder(d *admission.Decoder) error { +func (h *mutatingHandler) InjectDecoder(d admission.Decoder) error { h.decoder = d return nil }