Skip to content

Commit

Permalink
Merge pull request #223 from gianlucam76/active-window
Browse files Browse the repository at this point in the history
(bug) Reset Status when ActiveWindow is removed
  • Loading branch information
gianlucam76 authored Aug 19, 2024
2 parents d81667c + 5327696 commit 4f8835d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/sveltoscluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ func handleAutomaticPauseUnPause(sveltosCluster *libsveltosv1beta1.SveltosCluste
currentTime time.Time, logger logr.Logger) {

if sveltosCluster.Spec.ActiveWindow == nil {
sveltosCluster.Status.NextUnpause = nil
sveltosCluster.Status.NextPause = nil
return
}

Expand Down

0 comments on commit 4f8835d

Please sign in to comment.