mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-03 14:53:52 +00:00
apiextensions: replace panic with error handling in DiscoveryController
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
This commit is contained in:
@@ -320,7 +320,8 @@ func (c *DiscoveryController) Run(stopCh <-chan struct{}, synchedCh chan<- struc
|
|||||||
utilruntime.HandleError(fmt.Errorf("timed out waiting for initial discovery sync"))
|
utilruntime.HandleError(fmt.Errorf("timed out waiting for initial discovery sync"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
panic(fmt.Errorf("unexpected error: %v", err))
|
utilruntime.HandleError(fmt.Errorf("unexpected error: %v", err))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
close(synchedCh)
|
close(synchedCh)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user