Switch event recorder to use events.k8s.io/v1

This commit is contained in:
Chelsey Chen
2020-06-16 18:25:18 -04:00
parent 6cedc0853f
commit ade2422883
16 changed files with 130 additions and 119 deletions

View File

@@ -80,7 +80,7 @@ func StartScheduler(clientSet clientset.Interface) (*scheduler.Scheduler, corein
informerFactory := informers.NewSharedInformerFactory(clientSet, 0)
podInformer := informerFactory.Core().V1().Pods()
evtBroadcaster := events.NewBroadcaster(&events.EventSinkImpl{
Interface: clientSet.EventsV1beta1().Events("")})
Interface: clientSet.EventsV1()})
evtBroadcaster.StartRecordingToSink(ctx.Done())
@@ -401,7 +401,7 @@ func InitTestSchedulerWithOptions(
}
var err error
eventBroadcaster := events.NewBroadcaster(&events.EventSinkImpl{
Interface: testCtx.ClientSet.EventsV1beta1().Events(""),
Interface: testCtx.ClientSet.EventsV1(),
})
if policy != nil {