diff --git a/manager/controllers/scaling/scaling.go b/manager/controllers/scaling/scaling.go index 6614f4f9..ec1affdd 100644 --- a/manager/controllers/scaling/scaling.go +++ b/manager/controllers/scaling/scaling.go @@ -39,7 +39,11 @@ func GetDesiredReplicas(step dfv1.Step) (int, error) { desiredReplicas := currentReplicas pending, ok := GetPending(step) if !ok { // Haven't got pending data - return 1, nil + if currentReplicas > 0 { + return currentReplicas, nil + } else { + return 1, nil + } } lastPending, ok := GetLastPending(step) if !ok { // Haven't got last-pending data