apiextensions: replace panic with error handling in DiscoveryController

Signed-off-by: Omer Aplatony <omerap12@gmail.com>
This commit is contained in:
Omer Aplatony 2024-12-19 09:23:24 +02:00
parent e305c33988
commit bc46e3d9b3

View File

@ -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)