-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix scheduleReconciler log info #6524
fix scheduleReconciler log info #6524
Conversation
/kind changelog-not-required |
Codecov Report
@@ Coverage Diff @@
## main #6524 +/- ##
==========================================
- Coverage 60.28% 60.25% -0.03%
==========================================
Files 238 238
Lines 25256 25268 +12
==========================================
Hits 15226 15226
- Misses 8976 8988 +12
Partials 1054 1054
|
@@ -199,11 +199,10 @@ func (c *scheduleReconciler) checkIfBackupInNewOrProgress(schedule *velerov1.Sch | |||
|
|||
for _, backup := range backupList.Items { | |||
if backup.Status.Phase == velerov1.BackupPhaseNew || backup.Status.Phase == velerov1.BackupPhaseInProgress { | |||
log.Debugf("Schedule %s/%s still has backups are in InProgress or New state, skip submitting backup to avoid overlap.", schedule.Namespace, schedule.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT should it be "... still has backups that are in InProgress..." or "... still has backups in InProgress..."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick review.
I am not a english speaker.
Your suggestion is make sense to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased.
f630403
to
e46e918
Compare
@@ -199,11 +199,10 @@ func (c *scheduleReconciler) checkIfBackupInNewOrProgress(schedule *velerov1.Sch | |||
|
|||
for _, backup := range backupList.Items { | |||
if backup.Status.Phase == velerov1.BackupPhaseNew || backup.Status.Phase == velerov1.BackupPhaseInProgress { | |||
log.Debugf("%s/%s still has backups that are in InProgress...", schedule.Namespace, schedule.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change it to in InProgress or New
? That's confuse if only contains the InProgress
state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased, Thanks review.
Signed-off-by: yanggang <[email protected]>
e46e918
to
c5af315
Compare
Thanks |
Thank you for contributing to Velero!
Please add a summary of your change
The log info is wrong , we should move it to the above code .
/kind cleanup
Does your change fix a particular issue?
Fixes #(issue)
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.