Skip to content

Commit

Permalink
Update base_controller.go (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelmaliy authored Jan 4, 2022
1 parent 2ae30bf commit d617b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/base_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func isDelete(object metav1.ObjectMeta) bool {
func isTransientError(err error, log logr.Logger) bool {
if smError, ok := err.(*sm.ServiceManagerError); ok {
log.Info(fmt.Sprintf("SM returned error status code %d", smError.StatusCode))
return smError.StatusCode == http.StatusTooManyRequests || smError.StatusCode == http.StatusServiceUnavailable || smError.StatusCode == http.StatusGatewayTimeout
return smError.StatusCode == http.StatusTooManyRequests || smError.StatusCode == http.StatusServiceUnavailable || smError.StatusCode == http.StatusGatewayTimeout || smError.StatusCode == http.StatusNotFound
}
return false
}
Expand Down

0 comments on commit d617b24

Please sign in to comment.