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 3157557
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3157557

Please sign in to comment.