mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +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"))
|
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: %w", err))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
close(synchedCh)
|
close(synchedCh)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user