From 19aef482fae55ebbcdf23bc75daf650d7aef87d9 Mon Sep 17 00:00:00 2001 From: changmin <9379950+chymy@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:06:04 +0800 Subject: [PATCH] fix incorrect variable reference in handleUpdateEndpointSlice --- pkg/proxy/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proxy/config/config.go b/pkg/proxy/config/config.go index 40c6ce9f41a..1c0e540a68b 100644 --- a/pkg/proxy/config/config.go +++ b/pkg/proxy/config/config.go @@ -129,7 +129,7 @@ func (c *EndpointSliceConfig) handleAddEndpointSlice(obj interface{}) { func (c *EndpointSliceConfig) handleUpdateEndpointSlice(oldObj, newObj interface{}) { oldEndpointSlice, ok := oldObj.(*discoveryv1.EndpointSlice) if !ok { - utilruntime.HandleError(fmt.Errorf("unexpected object type: %T", newObj)) + utilruntime.HandleError(fmt.Errorf("unexpected object type: %T", oldObj)) return } newEndpointSlice, ok := newObj.(*discoveryv1.EndpointSlice)