Xu-Wentao commented on code in PR #364:
URL: 
https://github.com/apache/shardingsphere-on-cloud/pull/364#discussion_r1194950317


##########
shardingsphere-operator/pkg/controllers/shardingsphere_chaos_controller.go:
##########
@@ -160,6 +160,9 @@ func (r *ShardingSphereChaosReconciler) reconcileStatus(ctx 
context.Context, cha
 
        rt, err := r.getRuntimeChaos(ctx, namespacedName)
        if err != nil {
+               if apierrors.IsNotFound(err) {
+                       return nil
+               }
                return err

Review Comment:
   `return apierrors.IsNotFound(err)`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to