Clear validation errors when schedule is valid (#8575)

Clear validation errors when schedule is valid

Fixes #8571

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
pull/8591/head
Wenkai Yin(尹文开) 2025-01-04 04:13:43 +08:00 committed by GitHub
parent 6860dabb85
commit 3120e33ed7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
Clear validation errors when schedule is valid

View File

@ -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