diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 2fe7dde9..374f779b 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -702,9 +702,10 @@ func DetectContainerRuntimeViaK8sAPI(ctx context.Context, k8sClient *k8sinterfac // override the socket path realSocketPath, err := getContainerRuntimeSocketPath(k8sClient, nodeName) if err != nil { - return nil, fmt.Errorf("failed to get container runtime socket path from Kubelet configz: %v", err) + logger.L().Warning("failed to get container runtime socket path from Kubelet configz", helpers.String("error", err.Error())) + } else { + runtimeConfig.SocketPath = realSocketPath } - runtimeConfig.SocketPath = realSocketPath // unset the runtime protocol runtimeConfig.RuntimeProtocol = "" return runtimeConfig, nil