Skip to content

Commit

Permalink
Clear validation errors when schedule is valid (#8575)
Browse files Browse the repository at this point in the history
Clear validation errors when schedule is valid

Fixes #8571

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
  • Loading branch information
ywk253100 authored Jan 3, 2025
1 parent 6860dab commit 3120e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/8575-ywk253100
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clear validation errors when schedule is valid
1 change: 1 addition & 0 deletions pkg/controller/schedule_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func (c *scheduleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
schedule.Status.ValidationErrors = errs
} else {
schedule.Status.Phase = velerov1.SchedulePhaseEnabled
schedule.Status.ValidationErrors = nil
}

scheduleNeedsPatch := false
Expand Down

0 comments on commit 3120e33

Please sign in to comment.