From e01674ca6c3376edff6fb82d4df6c47784b96a48 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 1 Aug 2024 14:34:22 +0200 Subject: [PATCH] Fix recording events Signed-off-by: Andrei Kvapil --- controller/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/controller.go b/controller/controller.go index 1ad5689b..8cb106e1 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -151,6 +151,7 @@ func NewObjectStorageControllerWithClientset(identity string, leaderLockName str } rb := record.NewBroadcaster() + rb.StartRecordingToSink(&corev1.EventSinkImpl{Interface: kubeClient.CoreV1().Events("")}) extendedScheme := scheme.Scheme if err := v1alpha1.AddToScheme(extendedScheme); err != nil {