mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #129298 from omerap12/fix-discovery-controller-panic
apiextensions: replace panic with error handling in DiscoveryController
This commit is contained in:
commit
e319c541f1
@ -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: %w", err))
|
||||
return
|
||||
}
|
||||
close(synchedCh)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user