From 34228c6d0b49f2e57fa3f5ad174901f073b11f8b Mon Sep 17 00:00:00 2001 From: Praveen M Date: Tue, 11 Jun 2024 10:27:14 +0530 Subject: [PATCH] build: passing context parameter as required Version 0.18.0 of github.com/kubernetes-csi/csi-lib-utils added support for structured logging. This commit includes passing the context parameter for the necessary function. Signed-off-by: Praveen M --- internal/liveness/liveness.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/liveness/liveness.go b/internal/liveness/liveness.go index 778010e34..2c2fea4cd 100644 --- a/internal/liveness/liveness.go +++ b/internal/liveness/liveness.go @@ -67,7 +67,7 @@ func recordLiveness(endpoint, drivername string, pollTime, timeout time.Duration log.FatalLogMsg(err.Error()) } - csiConn, err := connlib.Connect(endpoint, liveMetricsManager) + csiConn, err := connlib.Connect(context.Background(), endpoint, liveMetricsManager) if err != nil { // connlib should retry forever so a returned error should mean // the grpc client is misconfigured rather than an error on the network