mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-03 20:40:26 -05:00
Merge pull request #129246 from chymy/patch-3
fix incorrect variable reference in handleUpdateEndpointSlice
This commit is contained in:
commit
aab3eb6875
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue