From d3cc42d577e62c2d676f7c86d7690a0115c095d7 Mon Sep 17 00:00:00 2001 From: Xun Jiang Date: Sat, 13 Apr 2024 23:27:02 +0800 Subject: [PATCH] Change the timeout handling code due to third-party package change The wait error changed from `timed out waiting for the condition` to `context deadline exceeded`. Signed-off-by: Xun Jiang --- pkg/util/csi/volume_snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/csi/volume_snapshot.go b/pkg/util/csi/volume_snapshot.go index ff6d00fd8..09bfb062d 100644 --- a/pkg/util/csi/volume_snapshot.go +++ b/pkg/util/csi/volume_snapshot.go @@ -753,7 +753,7 @@ func WaitUntilVSCHandleIsReady( ) if err != nil { - if err == wait.ErrorInterrupted(errors.New("timed out waiting for the condition")) { + if wait.Interrupted(err) { if vsc != nil && vsc.Status != nil && vsc.Status.Error != nil {