mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
fix incorrect variable reference in handleUpdateEndpointSlice
This commit is contained in:
parent
3ec97a445f
commit
19aef482fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user