Skip to content

Commit c6c03c3

Browse files
authored
avoid marking running status when it hits error (#874)
Signed-off-by: Daniel Fan <[email protected]> Signed-off-by: Daniel Fan <[email protected]>
1 parent 7478252 commit c6c03c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controllers/operandrequest/reconcile_operand.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ func (r *Reconciler) reconcileOperand(ctx context.Context, requestInstance *oper
173173
if err != nil {
174174
merr.Add(err)
175175
requestInstance.SetMemberStatus(operand.Name, "", operatorv1alpha1.ServiceFailed, &r.Mutex)
176+
continue
176177
}
177178
} else if apierrors.IsNotFound(err) {
178179
klog.Infof("Not Found OperandConfig: %s/%s", operand.Name, err)
@@ -186,6 +187,7 @@ func (r *Reconciler) reconcileOperand(ctx context.Context, requestInstance *oper
186187
if err != nil {
187188
merr.Add(err)
188189
requestInstance.SetMemberStatus(operand.Name, "", operatorv1alpha1.ServiceFailed, &r.Mutex)
190+
continue
189191
}
190192
}
191193
requestInstance.SetMemberStatus(operand.Name, "", operatorv1alpha1.ServiceRunning, &r.Mutex)

0 commit comments

Comments
 (0)