diff --git a/pkg/apiclient/apiclient.go b/pkg/apiclient/apiclient.go index c1af2c6a7bc6d..f3b210061156c 100644 --- a/pkg/apiclient/apiclient.go +++ b/pkg/apiclient/apiclient.go @@ -849,7 +849,7 @@ func (c *client) WatchApplicationWithRetry(ctx context.Context, appName string, } func isCanceledContextErr(err error) bool { - if err != nil && errors.Is(err, context.Canceled) { + if err != nil && errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { return true } if stat, ok := status.FromError(err); ok {