diff --git a/hcloud/cloud.go b/hcloud/cloud.go index 8e9f81a6..4fc18f20 100644 --- a/hcloud/cloud.go +++ b/hcloud/cloud.go @@ -140,12 +140,12 @@ func (c *cloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, eventBroadcaster := record.NewBroadcaster() eventBroadcaster.StartRecordingToSink(&v1.EventSinkImpl{Interface: client.CoreV1().Events("")}) - + go func() { <-stop eventBroadcaster.Shutdown() }() - + recorder := eventBroadcaster.NewRecorder(scheme.Scheme, corev1.EventSource{Component: "hcloud-cloud-controller-manager"}) c.recorder = recorder }