Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update the err msg & err check
  • Loading branch information
ZhuoxiLi committed Aug 17, 2021
commit 3f7c8ed48ec66a10443d9c71ab5d3b7862f9bea4
2 changes: 1 addition & 1 deletion controllers/operandrequest/reconcile_operand.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (r *Reconciler) reconcileOperand(ctx context.Context, requestInstance *oper
requestInstance.SetMemberStatus(operand.Name, "", operatorv1alpha1.ServiceFailed, &r.Mutex)
}
} else if apierrors.IsNotFound(err) {
klog.Warningf("Failed to get %s OperandConfig: %s", operand.Name, err)
klog.Infof("Not Found OperandConfig: %s/%s", operand.Name, err)
} else if err != nil {
merr.Add(errors.Wrapf(err, "failed to get the OperandConfig %s", registryKey.String()))
continue
Expand Down
6 changes: 5 additions & 1 deletion controllers/operandrequest/reconcile_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,11 @@ func (r *Reconciler) absentOperatorsAndOperands(ctx context.Context, requestInst
}
configInstance, err := r.GetOperandConfig(ctx, registryKey)
if err != nil {
configInstance = &operatorv1alpha1.OperandConfig{}
if apierrors.IsNotFound(err) {
configInstance = &operatorv1alpha1.OperandConfig{}
} else {
return err
}
}
merr := &util.MultiErr{}
remainingOp := needDeletedOperands.Clone()
Expand Down