Merge pull request #129246 from chymy/patch-3

fix incorrect variable reference in handleUpdateEndpointSlice
This commit is contained in:
Kubernetes Prow Robot 2024-12-18 15:20:20 +01:00 committed by GitHub
commit aab3eb6875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)