mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Revert "Merge pull request #10246 from nikhiljindal"
This reverts commita902a2f014, reversing changes made to7df8d76a93.
This commit is contained in:
@@ -372,11 +372,6 @@ func IsServerTimeout(err error) bool {
|
||||
return reasonForError(err) == api.StatusReasonServerTimeout
|
||||
}
|
||||
|
||||
// IsInternalServerError determines if err is an error which indicates that there was an internal server error.
|
||||
func IsInternalServerError(err error) bool {
|
||||
return reasonForError(err) == api.StatusReasonInternalError
|
||||
}
|
||||
|
||||
// IsUnexpectedServerError returns true if the server response was not in the expected API format,
|
||||
// and may be the result of another HTTP actor.
|
||||
func IsUnexpectedServerError(err error) bool {
|
||||
@@ -414,14 +409,6 @@ func SuggestsClientDelay(err error) (int, bool) {
|
||||
return 0, false
|
||||
}
|
||||
|
||||
func IsAPIStatusError(err error) bool {
|
||||
switch err.(type) {
|
||||
case *StatusError:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func reasonForError(err error) api.StatusReason {
|
||||
switch t := err.(type) {
|
||||
case *StatusError:
|
||||
|
||||
Reference in New Issue
Block a user