// Launch creates and executes controller
Launch creates and executes controller
// Launch creates and executes controller
func Launch(clientset kubernetes.Interface, notifier notifier.WebhookNotifier, stopCh <-chan struct{}) {
	factory := informers.NewSharedInformerFactory(clientset, 0)
	informer := factory.Core().V1().Events()
	eventHandler := handler.NewEventHandler(notifier)
	c := newController("event", clientset, informer, eventHandler)
	klog.Info("start informers")
	factory.Start(stopCh)
	klog.Info("wait for informers cache sync...")
	factory.WaitForCacheSync(stopCh)
	klog.Info("informers cache synced")
	c.Run(stopCh)
}
func Launch ( clientset kubernetes . Interface , notifier notifier . WebhookNotifier , stopCh <- chan struct { } ) { factory := informers . NewSharedInformerFactory ( clientset , 0 ) informer := factory . Core ( ) . V1 ( ) . Events ( ) eventHandler := handler . NewEventHandler ( notifier ) c := newController ( " " , clientset , informer , eventHandler ) klog . Info ( " " ) factory . Start ( stopCh ) klog . Info ( " " ) factory . WaitForCacheSync ( stopCh ) klog . Info ( " " ) c . Run ( stopCh ) }
Launch creates and executes controller
Launch creates and executes controller