mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 02:18:15 +00:00
fix: reduce webhook controller logs (#4897)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
c213deab4b
commit
8e15982448
1 changed files with 3 additions and 3 deletions
|
@ -143,8 +143,8 @@ func NewController(
|
|||
config.ValidatingWebhookConfigurationName: sets.NewString(),
|
||||
},
|
||||
}
|
||||
controllerutils.AddDefaultEventHandlers(logger, mwcInformer.Informer(), queue)
|
||||
controllerutils.AddDefaultEventHandlers(logger, vwcInformer.Informer(), queue)
|
||||
controllerutils.AddDefaultEventHandlers(logger.V(3), mwcInformer.Informer(), queue)
|
||||
controllerutils.AddDefaultEventHandlers(logger.V(3), vwcInformer.Informer(), queue)
|
||||
controllerutils.AddEventHandlersT(
|
||||
secretInformer.Informer(),
|
||||
func(obj *corev1.Secret) {
|
||||
|
@ -200,7 +200,7 @@ func (c *controller) Run(ctx context.Context, workers int) {
|
|||
// add our known webhooks to the queue
|
||||
c.enqueueAll()
|
||||
go c.watchdog(ctx)
|
||||
controllerutils.Run(ctx, ControllerName, logger, c.queue, workers, maxRetries, c.reconcile)
|
||||
controllerutils.Run(ctx, ControllerName, logger.V(3), c.queue, workers, maxRetries, c.reconcile)
|
||||
}
|
||||
|
||||
func (c *controller) watchdog(ctx context.Context) {
|
||||
|
|
Loading…
Add table
Reference in a new issue