Skip to content

Commit

Permalink
fix pause to pause senerio
Browse files Browse the repository at this point in the history
Signed-off-by: YangKeao <keao.yang@yahoo.com>
  • Loading branch information
YangKeao committed Dec 14, 2020
1 parent 4995a56 commit a7a8fa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/twophase/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
return ctrl.Result{}, err
}

if chaos.GetStatus().Experiment.Phase == v1alpha1.ExperimentPhaseFinished {
// the reconciliation of Finished and Paused resource shouldn't be triggered by time
if chaos.GetStatus().Experiment.Phase == v1alpha1.ExperimentPhaseFinished ||
chaos.GetStatus().Experiment.Phase == v1alpha1.ExperimentPhasePaused {
return ctrl.Result{}, nil
}

Expand Down

0 comments on commit a7a8fa0

Please sign in to comment.