diff --git a/gateway/plugin/external.go b/gateway/plugin/external.go index c806e5416a64c7a62ba5cb7c276ce982f0ee0f73..5e2b0743480056f80adfc330847ad760b294e1e0 100644 --- a/gateway/plugin/external.go +++ b/gateway/plugin/external.go @@ -140,7 +140,7 @@ func (s ExternalServiceQuery) SetReplicas(serviceName string, count uint64) erro } } - if res.StatusCode != http.StatusOK { + if !(res.StatusCode == http.StatusOK || res.StatusCode == http.StatusAccepted) { err = fmt.Errorf("error scaling HTTP code %d, %s", res.StatusCode, urlPath) }