Restore original (non-status) check on replicas
This check is already also being performed in the namespace template (making sure the active trial counts match what was computed)
@@ -73,7 +73,7 @@ func (r *ServerReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
}
// Create a new trial if necessary
- if exp.Replicas() > exp.Status.ActiveTrials {
+ if exp.Replicas() > 0 {
if result, err := r.nextTrial(ctx, log, exp, trialList); result != nil {
return *result, err
}
