Skip to content

Commit

Permalink
Merge pull request #7563 from ialidzhikov/fix/vpa-updater-event-logs
Browse files Browse the repository at this point in the history
vpa-updater: Fix logging of events
  • Loading branch information
k8s-ci-robot authored Dec 6, 2024
2 parents bed5185 + b2151fc commit 4d092e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertical-pod-autoscaler/pkg/updater/logic/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func newPodLister(kubeClient kube_client.Interface, namespace string) v1lister.P

func newEventRecorder(kubeClient kube_client.Interface) record.EventRecorder {
eventBroadcaster := record.NewBroadcaster()
eventBroadcaster.StartLogging(klog.V(4).InfoS)
eventBroadcaster.StartStructuredLogging(4)
if _, isFake := kubeClient.(*fake.Clientset); !isFake {
eventBroadcaster.StartRecordingToSink(&clientv1.EventSinkImpl{Interface: clientv1.New(kubeClient.CoreV1().RESTClient()).Events("")})
} else {
Expand Down

0 comments on commit 4d092e5

Please sign in to comment.