func (c *ControllerV1) Run(stopCh <-chan struct{}) {
	defer c.queue.ShutDown()

	log.Infof("Starting webhook controller for secret %s/%s and webhook %s - Using admissionregistration/v1", c.config.getSecretNs(), c.config.getSecretName(), c.config.getWebhookName())
	defer log.Infof("Stopping webhook controller for secret %s/%s and webhook %s", c.config.getSecretNs(), c.config.getSecretName(), c.config.getWebhookName())

	if ok := cache.WaitForCacheSync(stopCh, c.secretsSynced, c.webhooksSynced); !ok {
		return
	}

	go wait.Until(c.run, time.Second, stopCh)

	// Trigger a reconciliation to create the Webhook if it doesn't exist
	c.queue.Add(c.config.getWebhookName())

	<-stopCh
}
// Run starts the controller to process Secret and Webhook
// events after sync'ing the informer's cache.
Run starts the controller to process Secret and Webhook
events after sync'ing the informer's cache.
// Run starts the controller to process Secret and Webhook // events after sync ' ing the informer ' s cache .
func (c *ControllerV1) Run(stopCh <-chan struct{}) {
	defer c.queue.ShutDown()
	log.Infof("Starting webhook controller for secret %s/%s and webhook %s - Using admissionregistration/v1", c.config.getSecretNs(), c.config.getSecretName(), c.config.getWebhookName())
	defer log.Infof("Stopping webhook controller for secret %s/%s and webhook %s", c.config.getSecretNs(), c.config.getSecretName(), c.config.getWebhookName())
	if ok := cache.WaitForCacheSync(stopCh, c.secretsSynced, c.webhooksSynced); !ok {
		return
	}
	go wait.Until(c.run, time.Second, stopCh)
	c.queue.Add(c.config.getWebhookName())
	<-stopCh
}
func ( c * ControllerV1 ) Run ( stopCh <- chan struct { } ) { defer c . queue . ShutDown ( ) log . Infof ( " " , c . config . getSecretNs ( ) , c . config . getSecretName ( ) , c . config . getWebhookName ( ) ) defer log . Infof ( " " , c . config . getSecretNs ( ) , c . config . getSecretName ( ) , c . config . getWebhookName ( ) ) if ok := cache . WaitForCacheSync ( stopCh , c . secretsSynced , c . webhooksSynced ) ; ! ok { return } go wait . Until ( c . run , time . Second , stopCh ) c . queue . Add ( c . config . getWebhookName ( ) ) <- stopCh }
Run starts the controller to process Secret and Webhook
events after sync'ing the informer's cache.
Run starts the controller to process Secret and Webhook events after sync ' ing the informer ' s cache .
// Trigger a reconciliation to create the Webhook if it doesn't exist