Skip to content

Commit 9916513

Browse files
committed
lint
Signed-off-by: Omer Aplatony <[email protected]>
1 parent fe46e47 commit 9916513

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package apiserver
1818

1919
import (
2020
"context"
21+
"errors"
2122
"fmt"
2223
"sort"
2324
"time"
@@ -315,7 +316,7 @@ func (c *DiscoveryController) Run(stopCh <-chan struct{}, synchedCh chan<- struc
315316
}
316317
return true, nil
317318
}); err != nil {
318-
if err == context.DeadlineExceeded {
319+
if errors.Is(err, context.Canceled) {
319320
utilruntime.HandleError(fmt.Errorf("timed out waiting for initial discovery sync"))
320321
return
321322
}

0 commit comments

Comments
 (0)