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

Commit

Permalink
Fix recording events
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Kvapil <[email protected]>
  • Loading branch information
kvaps committed Aug 1, 2024
1 parent 8f3e219 commit 7d34353
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ func NewObjectStorageControllerWithClientset(identity string, leaderLockName str
}

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

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

0 comments on commit 7d34353

Please sign in to comment.