Skip to content

feat : project preheat task#926

Draft
Sypher845 wants to merge 10 commits into
goharbor:mainfrom
Sypher845:feat/project-preheat-task
Draft

feat : project preheat task#926
Sypher845 wants to merge 10 commits into
goharbor:mainfrom
Sypher845:feat/project-preheat-task

Conversation

@Sypher845
Copy link
Copy Markdown
Contributor

Note : This is the third PR for the issue #836 . This should be merged after the merging of #925

Description

Adds the harbor project preheat task command group to manage P2P preheat task of execution for a policy under a project. Harbor supports P2P (Peer-to-Peer) preheat distribution using engines like Dragonfly or Kraken. Users can create preheat policies under a project to preload container images into a P2P network before they are needed. The preheat command allows users to manage preheat policies, monitor executions, and inspect tasks from the terminal.

Commands

  • harbor project preheat task list — List preheat task
Kooha-2026-05-14-11-49-43
  • harbor project preheat task log — View logs of a particular task
Kooha-2026-05-14-11-50-31

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / maintenance

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

❌ Patch coverage is 0% with 585 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.31%. Comparing base (60ad0bd) to head (6ff69b8).
⚠️ Report is 181 commits behind head on main.

Files with missing lines Patch % Lines
pkg/api/preheat_handler.go 0.00% 77 Missing ⚠️
cmd/harbor/root/project/preheat/task/list.go 0.00% 74 Missing ⚠️
cmd/harbor/root/project/preheat/task/log.go 0.00% 67 Missing ⚠️
cmd/harbor/root/project/preheat/execution/list.go 0.00% 63 Missing ⚠️
cmd/harbor/root/project/preheat/execution/view.go 0.00% 62 Missing ⚠️
cmd/harbor/root/project/preheat/execution/stop.go 0.00% 56 Missing ⚠️
pkg/prompt/prompt.go 0.00% 46 Missing ⚠️
pkg/views/preheat/task/list/view.go 0.00% 31 Missing ⚠️
pkg/views/preheat/execution/list/view.go 0.00% 23 Missing ⚠️
pkg/views/preheat/execution/view/view.go 0.00% 22 Missing ⚠️
... and 5 more
Additional details and impacted files
@@            Coverage Diff            @@
##             main    #926      +/-   ##
=========================================
- Coverage   10.99%   8.31%   -2.68%     
=========================================
  Files         173     326     +153     
  Lines        8671   16328    +7657     
=========================================
+ Hits          953    1357     +404     
- Misses       7612   14845    +7233     
- Partials      106     126      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sypher845 added 10 commits May 28, 2026 21:00
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
@Sypher845 Sypher845 force-pushed the feat/project-preheat-task branch from fd150dd to 6ff69b8 Compare May 28, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants