Reduce timeout for waiting for resource version

This commit is contained in:
Wojciech Tyczynski
2016-12-13 14:22:29 +01:00
parent 8e888a7671
commit d5e235c831
5 changed files with 44 additions and 11 deletions

View File

@@ -404,6 +404,12 @@ func IsForbidden(err error) bool {
return reasonForError(err) == metav1.StatusReasonForbidden
}
// IsTimeout determines if err is an error which indicates that request times out due to long
// processing.
func IsTimeout(err error) bool {
return reasonForError(err) == metav1.StatusReasonTimeout
}
// IsServerTimeout determines if err is an error which indicates that the request needs to be retried
// by the client.
func IsServerTimeout(err error) bool {