Skip to content

feat : project preheat task#926

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

feat : project preheat task#926
Sypher845 wants to merge 24 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

Sypher845 added 24 commits May 12, 2026 21:03
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>
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>
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>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

❌ Patch coverage is 0% with 1447 lines in your changes missing coverage. Please review.
✅ Project coverage is 7.74%. Comparing base (60ad0bd) to head (fd150dd).
⚠️ Report is 161 commits behind head on main.

Files with missing lines Patch % Lines
pkg/api/preheat_handler.go 0.00% 169 Missing ⚠️
pkg/config/preheat/policies.go 0.00% 129 Missing ⚠️
pkg/views/preheat/policy/create/view.go 0.00% 118 Missing ⚠️
cmd/harbor/root/project/preheat/policy/update.go 0.00% 106 Missing ⚠️
cmd/harbor/root/project/preheat/policy/create.go 0.00% 99 Missing ⚠️
cmd/harbor/root/project/preheat/task/list.go 0.00% 74 Missing ⚠️
pkg/prompt/prompt.go 0.00% 69 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 ⚠️
... and 18 more
Additional details and impacted files
@@            Coverage Diff            @@
##             main    #926      +/-   ##
=========================================
- Coverage   10.99%   7.74%   -3.25%     
=========================================
  Files         173     314     +141     
  Lines        8671   15890    +7219     
=========================================
+ Hits          953    1230     +277     
- Misses       7612   14543    +6931     
- Partials      106     117      +11     

☔ 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.

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.

1 participant