Skip to content

Commit

Permalink
When policy is deleted fail placement reconcile with error
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Gershkovich <[email protected]>
(cherry picked from commit 8eae033)
  • Loading branch information
ELENAGER committed Oct 2, 2023
1 parent 1785636 commit 3ac0e24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/drplacementcontrol_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ func (r *DRPlacementControlReconciler) Reconcile(ctx context.Context, req ctrl.R

drPolicy, err := r.getAndEnsureValidDRPolicy(ctx, drpc, logger)
if err != nil {
r.recordFailure(ctx, drpc, placementObj, "Error", err.Error(), logger)

return ctrl.Result{}, err
}

Expand Down

0 comments on commit 3ac0e24

Please sign in to comment.