Skip to content

Commit

Permalink
Merge pull request #204 from openshift-cherrypick-robot/cherry-pick-2…
Browse files Browse the repository at this point in the history
…03-to-release-4.15

Bug 2276664: [release-4.15] Return not found error
  • Loading branch information
openshift-merge-bot[bot] authored Apr 30, 2024
2 parents 046d749 + 0e3239d commit d0cc309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/drpolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (r *DRPolicyReconciler) getMirrorPeerForClusterSet(ctx context.Context, clu
}

klog.Info("could not find any mirrorpeer for drpolicy")
return nil, nil
return nil, k8serrors.NewNotFound(schema.GroupResource{Group: multiclusterv1alpha1.GroupVersion.Group, Resource: "MirrorPeer"}, fmt.Sprintf("ClusterSet-%s-%s", clusterSet[0], clusterSet[1]))
}
func (r *DRPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
klog.Infof("running DRPolicy reconciler on hub cluster")
Expand Down

0 comments on commit d0cc309

Please sign in to comment.