feat: added jobservice schedule subcommand#795
Conversation
|
Can you convert this to a draft, since this would cause conflicts with the other PR #793 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #795 +/- ##
=========================================
- Coverage 10.99% 8.65% -2.34%
=========================================
Files 173 320 +147
Lines 8671 15872 +7201
=========================================
+ Hits 953 1374 +421
- Misses 7612 14371 +6759
- Partials 106 127 +21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Please also check that the commands should be only accessible for admins. Please make sure that a user needs elevated priviledges. |
5fb39d8 to
5cdc28b
Compare
5cdc28b to
1b3a622
Compare
|
Please update the docs such that the lint pipeline does not fail |
done |
bupd
left a comment
There was a problem hiding this comment.
@NishchayRajput please resolve conflicts and rebase it onto main.
Thanks for the contribution.
Signed-off-by: Nishchay Rajput <nishchayr@iitbhilai.ac.in>
Signed-off-by: Nishchay Rajput <nishchayr@iitbhilai.ac.in>
Signed-off-by: Nishchay Rajput <nishchayr@iitbhilai.ac.in>
Signed-off-by: Nishchay Rajput <nishchayr@iitbhilai.ac.in>
5c39263 to
5c0c312
Compare
Done. |


Description
Briefly describe what this pull request does and why the change is needed.
This PR adds schedule management commands under
harbor jobservice schedulesto improve Job Service Dashboard parity for CLI users.It enables listing schedules, checking global scheduler status, and pausing or resuming all schedules from the CLI.
Type of Change
Please select the relevant type.
Changes
list,status,pause-all,resume-all.Command and Flag Behavior
Commands added
harbor jobservice schedules listharbor jobservice schedules statusharbor jobservice schedules pause-allharbor jobservice schedules resume-allSupported flags by command
harbor jobservice schedules list--page--page-size--output-format json|yamlharbor jobservice schedules status--output-format json|yamlharbor jobservice schedules pause-allharbor jobservice schedules resume-allDefault behavior
listuses page1and page-size20when flags are omitted.statusreports the global scheduler state forjob_type=all.pause-allandresume-alloperate directly on the global scheduler and are non-interactive.