// Run starts the custom controller
Run starts the custom controller
// Run starts the custom controller
func (c *Controller) Run(stopCh chan struct{}) {
	defer runtime.HandleCrash()
	log.Println("starting controller")
	defer log.Println("shutting down controller ")
	c.factory.Start(stopCh)
	if ok := cache.WaitForCacheSync(stopCh, c.synced); !ok {
		log.Println("failed to wait for caches to sync")
		return
	}
	if err := c.list(); err != nil {
		log.Println(err)
		return
	}
	<-stopCh
}
func ( c * Controller ) Run ( stopCh chan struct { } ) { defer runtime . HandleCrash ( ) log . Println ( " " ) defer log . Println ( " " ) c . factory . Start ( stopCh ) if ok := cache . WaitForCacheSync ( stopCh , c . synced ) ; ! ok { log . Println ( " " ) return } if err := c . list ( ) ; err != nil { log . Println ( err ) return } <- stopCh }
Run starts the custom controller
Run starts the custom controller
// print initial list of claims