logging migration of the ttlafterfinished

Signed-off-by: Oksana Baranova <oksana.baranova@intel.com>
This commit is contained in:
obaranov1
2023-01-20 15:39:57 +02:00
parent d6fe718e19
commit 21adaa1490
3 changed files with 44 additions and 26 deletions

View File

@@ -563,7 +563,9 @@ func startPVProtectionController(ctx context.Context, controllerContext Controll
}
func startTTLAfterFinishedController(ctx context.Context, controllerContext ControllerContext) (controller.Interface, bool, error) {
ctx = klog.NewContext(ctx, klog.LoggerWithName(klog.FromContext(ctx), "ttlafterfinished"))
go ttlafterfinished.New(
ctx,
controllerContext.InformerFactory.Batch().V1().Jobs(),
controllerContext.ClientBuilder.ClientOrDie("ttl-after-finished-controller"),
).Run(ctx, int(controllerContext.ComponentConfig.TTLAfterFinishedController.ConcurrentTTLSyncs))