mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
lint
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
This commit is contained in:
parent
fe46e47bd1
commit
991651353d
@ -18,6 +18,7 @@ package apiserver
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
"time"
|
||||
@ -315,7 +316,7 @@ func (c *DiscoveryController) Run(stopCh <-chan struct{}, synchedCh chan<- struc
|
||||
}
|
||||
return true, nil
|
||||
}); err != nil {
|
||||
if err == context.DeadlineExceeded {
|
||||
if errors.Is(err, context.Canceled) {
|
||||
utilruntime.HandleError(fmt.Errorf("timed out waiting for initial discovery sync"))
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user