Commit Graph

11656 Commits

Author SHA1 Message Date
MinerYang
2d98e8fe1e
Allow redis password using safe special characters (#18566)
allow redis password safe special characters

Signed-off-by: yminer <yminer@vmware.com>

string and None type conversion
2023-04-24 11:01:46 +08:00
Yang Jiao
0da12250ce
Add Job Service Dashboard Workers testcase (#18580)
Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-23 21:26:44 +08:00
Yang Jiao
8229134c72
Fix setup docker error (#18583)
Fix this error[https://github.com/goharbor/harbor/actions/runs/4776991336/jobs/8492390908]

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-23 19:26:17 +08:00
Shijun Sun
dd973b1593
Add missing i18n key-value for helm chart (#18578)
1.Fixes #18572

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-04-23 15:03:04 +08:00
Yang Jiao
c453e6eb9c
Update Support Matrix (#18540)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-20 18:16:35 +08:00
Yang Jiao
52d980eb46
Fix Handling skipped but required checks (#18570)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-20 18:03:02 +08:00
Yang Jiao
9ba18f8fe6
Handling skipped but required checks (#18564)
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-20 16:33:37 +08:00
Shijun Sun
e793e2433d
Update position to vertical-align for copy button (#18563)
Fixes #17906

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-04-20 15:40:24 +08:00
Yang Jiao
c7cbf0fcdb
Add Job Service Dashboard Schedules testcase (#18555)
Fix #17949

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-20 11:11:59 +08:00
MinerYang
8df99a5116
bump golang.org/x/net && helm.sh/helm/v3 on main (#18545)
bump golang.org/x/net v0.9.0 on main

Signed-off-by: yminer <yminer@vmware.com>

bump helm.sh/helm/v3 v3.11.3
2023-04-18 19:18:04 +08:00
Maxi_Mega
96bc43f7ab
Fix typos in common.sh (#18151)
* Fix typos in common.sh

Signed-off-by: Maxi_Mega <52792549+Maxi-Mega@users.noreply.github.com>

* Apply suggestions from code review

Signed-off-by: Orlix <OrlinVasilev@users.noreply.github.com>

* Add a new line at the end of make/common.sh

Co-authored-by: Orlix <OrlinVasilev@users.noreply.github.com>
Signed-off-by: Maxi_Mega <52792549+Maxi-Mega@users.noreply.github.com>

---------

Signed-off-by: Maxi_Mega <52792549+Maxi-Mega@users.noreply.github.com>
Signed-off-by: Orlix <OrlinVasilev@users.noreply.github.com>
Co-authored-by: Orlix <OrlinVasilev@users.noreply.github.com>
2023-04-17 16:56:19 +08:00
pgillich
eec5342490
feat: log with trace ID (#18181)
feat: log trace ID

Implements #18029

If the Trace ID is sent to the Harbor in HTTP header or the tracing
is enabled (and the Trace ID is generated), the Trace ID will be
added to the log lines as a new field.

Signed-off-by: Peter Gillich <pgillich@gmail.com>
2023-04-17 15:03:00 +08:00
Shijun Sun
de6e517136
Upgrade harbor-portal to v2.9.0 (#18525)
1.Magrate protractor to cypress as protractor has been deprecated

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-04-13 18:52:06 +08:00
Chlins Zhang
d3d6e29aa3
fix: update stopped execution status immediately instead of async update (#18527)
Update the stopped execution status immediately becasue the user
experience is not good if wait long time when stop or reschedule a job.

Fixes: #18526

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-13 17:52:41 +08:00
Iceber Gu
3afa525f0b
Change the permissions of the *.go file from 0755 to 0644 (#17919)
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2023-04-13 09:07:36 +02:00
Danny Kulchinsky
14e4c07d94
GC: correctly handle manifest unknown (404) condition in v2DeleteManifest retry loop (#18386)
GC: handle manifest unknown (404) during V2 manifest delete retry loop

Signed-off-by: Danny Kulchinsky <dkulchinsky@fastly.com>
2023-04-12 22:52:52 +02:00
Shijun Sun
b201f9864f
Synchronize text modification of quota tooltip to all the i18n files (#18518) 2023-04-12 10:55:02 +03:00
Chlins Zhang
b755c43d12
fix: clean the redis if the execution is not found (#18517)
Delete the execution outdated status key in the redis when the execution
is not found.

Fixes: #18511

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-12 14:17:42 +08:00
Orlix
7edb447e14
Reword quota definitions based on user input (#18512)
Fixes: https://github.com/goharbor/harbor/issues/17545

Signed-off-by: OrlinVasilev <ovasilev@vmware.com>
2023-04-12 11:50:33 +08:00
Shijun Sun
d01125a4cf
Update nightly-trivy-scan.yml for the workflows (#18510)
Update nightly-trivy-scan.yml
1. Update v2.7.0-dev to v2.8.0-dev as main branch is in v2.9.0 now

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-04-11 12:55:12 +08:00
Shengwen YU
44cfc088d3
feat: update TRIVYVERSION=v0.39.0 & TRIVYADAPTERVERSION=v0.30.10 (#18501)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-04-11 11:27:50 +08:00
Wang Yan
9ae948e066
bump base version (#18485)
Upgrade base version to v2.9.0

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-04-10 16:58:59 +08:00
MinerYang
7afdb932b2
bump golang 1.20.3 on main (#18492)
Signed-off-by: yminer <yminer@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2023-04-10 09:27:31 +08:00
Orlix
1a8b9189b6
Update proposal process with steps and board (#18379)
Co-authored-by: Thomas Coudert <couderthomas@gmail.com>
Co-authored-by: Orlix <OrlinVasilev@users.noreply.github.com>
2023-04-07 14:44:21 +03:00
Yang Jiao
cbf0a86ba2
Update UI testcases (#18491)
1. Update copy test case to add retries
2. Updata P2P Preheat test case to waiting
3. Update the Replication new rule button xpath

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-07 17:22:58 +08:00
Chlins Zhang
5791f0c979
fix: fix error bitsize of jobservice reaper scan locks (#18487)
Change the bitSize from 16 to 64 in the jobservice reaper, the 16 is too
small when the redis cursor over the max value of int16.

Fixes: #18486

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-07 10:59:30 +08:00
dependabot[bot]
499940a8a7
Bump mheap/github-action-required-labels from 3 to 4 (#18472)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Orlix <7236111+OrlinVasilev@users.noreply.github.com>
2023-04-06 12:01:18 +03:00
Chlins Zhang
697f1c79ef
fix: fix the regexp of execution status outdate key (#18481)
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-05 13:53:45 +08:00
Chlins Zhang
72a6ef2514
style: adjust the style of migration SQL (#18475)
Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-04 17:37:27 +08:00
Chlins Zhang
62bb56daf6
refactor: refresh the execution status in async mode (#18434)
Refactor the logic for updating the status of execution when receiving
the hook from jobservice, avoid the optimistic lock due to the multiple
tasks update one execution by refreshing the status asynchronously. But
still retain the old way by specifying the flag from ENV.

Fixes: #17584

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-04 16:37:37 +08:00
Shengwen YU
1e884c58c2
feat: update TRIVYVERSION=v0.38.2 & TRIVYADAPTERVERSION=v0.30.9 (#18473)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-04-04 15:25:17 +08:00
Wang Yan
60d9664cbc
fix accessory replication issue (#18471)
Fixes #18404
Support multiple level accessories replication.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-04-04 12:46:46 +08:00
MinerYang
de20659da5
bump golang 1.20.2 (#18469)
Signed-off-by: yminer <yminer@vmware.com>
2023-04-04 10:59:16 +08:00
Chlins Zhang
a7cef5e24f
fix: wrap schedule/exec/task creation as orm tx (#18458)
Wrap orm tx when the scheduler try to create the task because submit job
maybe failure depends on the jobservice.

Fixes: #18452

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-04 08:42:18 +08:00
Chlins Zhang
02c51c6b70
fix: correct the retention webhook payload (#18462)
Fix the incorrect number of total and retained in the retention webhook
payload, and completes the deleted_artifacts field.

Fixes: #18428

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-03 17:51:02 +08:00
Shijun Sun
1499faf67d
Update styles for UI according to the designer's suggestions (#18463)
1. extend the width for event type label
2. add quotes for Retain image last pull time to make it more understandable

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-04-03 16:47:21 +08:00
Yang Jiao
f5be644d35
Update UI test cases (#18470)
1. Update replication role testcase
2. Update job service dashboard testcase

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-04-03 16:01:51 +08:00
Chlins Zhang
ca9e2d2f07
fix: generate uuid as CloudEvents id and add additional requestid (#18451)
1. Change the the value of CloudEvents id from requestid to uuid
2. Add additional requestid to trace to event

Fixes: #18448

Signed-off-by: chlins <chenyuzh@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2023-04-03 12:02:19 +08:00
Wang Yan
fddfaa7ba5
fix copy artifact issue (#18460)
To enable the middleware to save the project_blob data, make sure to set the accessories options to true when handling the artifact copy.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2023-04-03 10:58:17 +08:00
Chlins Zhang
cb0749c7ab
fix: add default payload_format for http type webhook (#18445)
1. Add migration SQL to handle the lost payload format for old policies.
2. Set payload format to 'Default' if not specified for http webhook in the API handler.
3. Fix the migration sql of notification_job

Fixes: #18401, #18453

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-04-02 15:33:33 +08:00
Chlins Zhang
5d953b48b6
fix: escape the event data for slack webhook payload (#18424)
Escape the event data of slack webhook as original payload is invalid
when send to slack.

Fixes: #18423

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-31 17:05:10 +08:00
Shijun Sun
95972ba693
Add new app level warning message (#18449)
1. Show a app level warning if there is a stuck job
2. Chang `Replication finished` to `Replication status changed`

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-31 13:08:57 +08:00
Yang Jiao
a95808c120
Update webhook and repliation element xpath (#18456)
Update webhook xpath
Update replication xpath

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2023-03-31 11:00:16 +08:00
Wang Yan
f63865d207
fix the copy artifact issue (#18441)
support copy artifact with multipe levels of accessories.

Signed-off-by: wang yan <wangyan@vmware.com>
2023-03-30 02:04:22 +08:00
Shijun Sun
d22c94b4fa
Remove markdown pipe for webhook payload data (#18439)
1. Fixes #18435

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-29 12:38:32 +08:00
Chlins Zhang
6e9f72315f
fix: fix the invalid jobid for scan data export (#18398)
Change the JobId param type from int to string, use int will bring some
problems for encode/decode type mismatch which generate the invalid
repository name.

Fixes: #18380

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-29 10:29:08 +08:00
Shijun Sun
9e0e8e066b
Add copy digest button for accessories (#18433)
1.Fixes #18406

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-28 20:37:44 +08:00
Shijun Sun
9b593550ab
Upgrade @clr/angular and @clr/ui to 15.0.3 (#18427)
1.Fixes #18422
2. Upgrade Clarity to 15.0.3 to apply the fix for #18422

Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-28 19:38:12 +08:00
Shijun Sun
e5e61d4eaa
Correct a grammatical error (#18431)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2023-03-28 18:05:22 +08:00
Shengwen YU
208b7f4cb0
fix: add remove chartmuseum notice message (#18426)
Co-authored-by: Wang Yan <wangyan@vmware.com>
Co-authored-by: Orlix <OrlinVasilev@users.noreply.github.com>
2023-03-28 12:16:17 +03:00