From 023d6fb8f4a7d130bf5c8e725ca310df9e663cd0 Mon Sep 17 00:00:00 2001 From: Deep Debroy Date: Fri, 4 Mar 2022 20:45:07 +0000 Subject: [PATCH] Pass instrumented runtime service to containergc Signed-off-by: Deep Debroy --- pkg/kubelet/kuberuntime/kuberuntime_manager.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/kubelet/kuberuntime/kuberuntime_manager.go b/pkg/kubelet/kuberuntime/kuberuntime_manager.go index 5a1df82b2dd..49cad688cb2 100644 --- a/pkg/kubelet/kuberuntime/kuberuntime_manager.go +++ b/pkg/kubelet/kuberuntime/kuberuntime_manager.go @@ -195,6 +195,8 @@ func NewKubeGenericRuntimeManager( getNodeAllocatable func() v1.ResourceList, memoryThrottlingFactor float64, ) (KubeGenericRuntime, error) { + runtimeService = newInstrumentedRuntimeService(runtimeService) + imageService = newInstrumentedImageManagerService(imageService) kubeRuntimeManager := &kubeGenericRuntimeManager{ recorder: recorder, cpuCFSQuota: cpuCFSQuota, @@ -206,8 +208,8 @@ func NewKubeGenericRuntimeManager( machineInfo: machineInfo, osInterface: osInterface, runtimeHelper: runtimeHelper, - runtimeService: newInstrumentedRuntimeService(runtimeService), - imageService: newInstrumentedImageManagerService(imageService), + runtimeService: runtimeService, + imageService: imageService, internalLifecycle: internalLifecycle, logManager: logManager, runtimeClassManager: runtimeClassManager,