Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 7d34353

Browse files
committed
Fix recording events
Signed-off-by: Andrei Kvapil <[email protected]>
1 parent 8f3e219 commit 7d34353

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: controller/controller.go

+2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ func NewObjectStorageControllerWithClientset(identity string, leaderLockName str
151151
}
152152

153153
rb := record.NewBroadcaster()
154+
rb.StartLogging(klog.Infof)
155+
rb.StartRecordingToSink(&corev1.EventSinkImpl{Interface: kubeClient.CoreV1().Events("")})
154156

155157
extendedScheme := scheme.Scheme
156158
if err := v1alpha1.AddToScheme(extendedScheme); err != nil {

0 commit comments

Comments
 (0)