Skip to content

Commit

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

Fixes vmware-tanzu#8571

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
  • Loading branch information
ywk253100 committed Jan 3, 2025
1 parent 6860dab commit 487e4bb
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 487e4bb

Please sign in to comment.