diff --git a/changelogs/unreleased/8575-ywk253100 b/changelogs/unreleased/8575-ywk253100 new file mode 100644 index 0000000000..30916f4e09 --- /dev/null +++ b/changelogs/unreleased/8575-ywk253100 @@ -0,0 +1 @@ +Clear validation errors when schedule is valid \ No newline at end of file diff --git a/pkg/controller/schedule_controller.go b/pkg/controller/schedule_controller.go index 4b89e98a3e..799a8c77a2 100644 --- a/pkg/controller/schedule_controller.go +++ b/pkg/controller/schedule_controller.go @@ -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