mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 04:38:04 +08:00
Merge pull request #1144 from pescox/pr/worker-goroutine-leak
fix rbd-woker helmapp goroutine leak
This commit is contained in:
commit
af1fc40e6e
@ -99,6 +99,8 @@ func NewApp(ctx context.Context, kubeClient clientset.Interface, rainbondClient
|
||||
|
||||
func createRecorder(kubeClient clientset.Interface, name, namespace string) record.EventRecorder {
|
||||
eventBroadcaster := record.NewBroadcaster()
|
||||
defer eventBroadcaster.Shutdown()
|
||||
|
||||
eventBroadcaster.StartLogging(logrus.Infof)
|
||||
|
||||
eventBroadcaster.StartRecordingToSink(&v1core.EventSinkImpl{
|
||||
|
Loading…
Reference in New Issue
Block a user