-
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
Design #6517: Schedule Skip Immediately Config #6829
Conversation
19c8836
to
c85638d
Compare
/kind changelog-not-required |
b930bb7
to
6b87058
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6829 +/- ##
==========================================
+ Coverage 61.75% 61.94% +0.18%
==========================================
Files 259 259
Lines 27894 27903 +9
==========================================
+ Hits 17227 17285 +58
+ Misses 9459 9410 -49
Partials 1208 1208 ☔ View full report in Codecov by Sentry. |
1e52b7f
to
22abe45
Compare
8c4aa56
to
92bed60
Compare
Proposal looks good to me though I would have preferred trigger to be false by default. By far, that is the most intuitive and least surprising. |
I don't mind moving it to false by default if community agrees. Just didn't wanna break anyone relying on this.. but to be fair this will go in a new minor version so probably enough to make note of the changes. |
After looking at the code.. I think saying schedule unpause always cause backup to trigger is inaccurate. To be more precise, the following code is used, based on last backup time to generate if it needs to run after unpausing.
So perhaps it would take note when unpause happens (added to
|
2c4aee0
to
d58302c
Compare
7bed30a
to
b9be014
Compare
Switched out added ScheduleStatus field from LastUnpaused to LastSkipped as that is more practical and more useful. |
b9be014
to
d66954d
Compare
5df0d45
to
b33d446
Compare
Signed-off-by: Tiger Kaovilai <[email protected]> switch from "unpause triggers" to "skip immediately" for clarity Signed-off-by: Tiger Kaovilai <[email protected]> Apply suggestions from code review Signed-off-by: Tiger Kaovilai <[email protected]> Uncomment velero server option Signed-off-by: Tiger Kaovilai <[email protected]> Backup will also be triggered at the next cron schedule. Signed-off-by: Tiger Kaovilai <[email protected]> Clarify: unpauseTriggers trigger based from lastBackup timestamp, CRD default blocks server flags Signed-off-by: Tiger Kaovilai <[email protected]> `velero schedule unpause schedule-1` will check `.spec.UnpauseTriggers` Signed-off-by: Tiger Kaovilai <[email protected]> Add `LastUnpaused` to ScheduleStatus Signed-off-by: Tiger Kaovilai <[email protected]> Add `velero install` Signed-off-by: Tiger Kaovilai <[email protected]>
b33d446
to
bf3efc3
Compare
technically this already went in via #7169 |
Design to add new
skipImmediately
to schedule spec and related CLI flags for server, install, etc. to allow immediately due run to be skipped.Thank you for contributing to Velero!
Please add a summary of your change
Does your change fix a particular issue?
For #6517
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.Implementation: #7169