mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
apiextensions: replace panic with error handling in DiscoveryController
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
This commit is contained in:
parent
e305c33988
commit
bc46e3d9b3
@ -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"))
|
||||
return
|
||||
}
|
||||
panic(fmt.Errorf("unexpected error: %v", err))
|
||||
utilruntime.HandleError(fmt.Errorf("unexpected error: %v", err))
|
||||
return
|
||||
}
|
||||
close(synchedCh)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user