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 <blackpigletbruce@gmail.com>
This commit is contained in:
Xun Jiang
2024-04-13 23:27:02 +08:00
parent 30995bcbd2
commit d3cc42d577

View File

@@ -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 {