Revert "client-go: add retry logic for Watch and Stream"

This reverts commit 607d3819498e64d969407c3d7cbbb8f53d98f0d4.

Kubernetes-commit: e35af41a1236943b6510a25cfb8cb47855aaa16e
This commit is contained in:
Jordan Liggitt
2021-06-04 01:11:25 -04:00
committed by Kubernetes Publisher
parent 71f81dc715
commit 5ba99a7f80
4 changed files with 244 additions and 647 deletions

View File

@@ -43,10 +43,6 @@ func (r IsRetryableErrorFunc) IsErrorRetryable(request *http.Request, err error)
return r(request, err)
}
var neverRetryError = IsRetryableErrorFunc(func(_ *http.Request, _ error) bool {
return false
})
// WithRetry allows the client to retry a request up to a certain number of times
// Note that WithRetry is not safe for concurrent use by multiple
// goroutines without additional locking or coordination.