chlins
7eed9db404
feat(manifest): introduce cache layer for manifest ( #16459 )
...
Implement cache layer for resource manifest, it will read manifest
from cache instead of proxying to distribution if enabled.
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-05-19 10:25:50 +08:00
Shijun Sun
5a4f6c6167
Improve css for accessories component ( #16868 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-05-18 14:58:50 +08:00
Shijun Sun
4f253731f4
Allow all roles to see 'listed in CVE allowlist' column ( #16860 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-05-18 13:50:34 +08:00
Wang Yan
ae83f9a027
fix accessory count issue ( #16866 )
...
The count api should ignore the pagination.
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-05-17 15:02:29 +08:00
stonezdj(Daojun Zhang)
2852a7606b
Merge pull request #16833 from stonezdj/22may10_purge_audit_log
...
(feat) Add job service to purge audit_log
2022-05-17 09:02:56 +08:00
stonezdj
3ac7281177
Add job service to purge audit_log
...
Add jobservice type PurgeAuditLog
Signed-off-by: stonezdj <stonezdj@gmail.com>
2022-05-16 21:52:58 +08:00
Chenyu Zhang
d56a505fa7
Merge pull request #16846 from chlins/feat/cache-layer-for-repo
...
feat(repository): introduce cache manager for repository (#16741 )
2022-05-16 11:39:28 +08:00
Shijun Sun
bb8839b6a3
Upgrade clarity to the latest version ( #16840 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-05-16 10:13:46 +08:00
Shijun Sun
73295ff891
migrate tslint to eslint ( #16856 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-05-13 16:00:45 +08:00
Wang Yan
54a857f2aa
fix artifact count issue ( #16851 )
...
The count should filter out the accessory, the result should be consistent with list method.
Fixes #16816
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-05-13 11:48:20 +08:00
chlins
a82f1ba63d
feat(repository): introduce cache manager for repository ( #16741 )
...
Implement cache layer for resource repository and migrate repository.Mgr
to pkg.RepositoryMgr.
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-05-12 10:14:35 +08:00
Shengwen YU
ee214f0347
Merge pull request #16841 from zyyw/issue-16355-gc-update_time
...
fix: gc history update_time
2022-05-12 10:12:47 +08:00
Chenyu Zhang
f78047f169
Merge pull request #16807 from chlins/feat/cache-layer-for-project
...
feat(project): introduce cache manager for project (#16740 )
2022-05-11 22:47:45 +08:00
Shengwen Yu
d2c4c4f71b
fix: gc history update_time
...
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-05-11 17:17:09 +08:00
chlins
0fd0c84446
feat(project): introduce cache manager for project ( #16740 )
...
Implement cached manager for resource project and migrate project.Mgr
to pkg.ProjectMgr.
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-05-11 15:52:09 +08:00
Shijun Sun
6ca3665207
Improve css for tags column ( #16811 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-05-10 17:47:09 +08:00
Yang Jiao
4d116893be
Merge pull request #16832 from YangJiao0817/update-cosign-testcase
...
Update cosign test case
2022-05-10 16:18:16 +08:00
Yang Jiao
2563cf1bfb
Merge pull request #16760 from YangJiao0817/add-imgpkg-copy-testcase
...
Add imgpkg copy test case
2022-05-10 16:17:50 +08:00
Wang Yan
d3d4ad6a34
fix staticcheck issues ( #16828 )
...
Fix the staticcheck problems that reported by golangci-line staticcheck
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-05-10 16:07:10 +08:00
Yang Jiao
49ddaee603
Update cosign test case
...
1 bump up cosign version to 1.8.0
2 Add cosign Verify test
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-05-10 07:01:27 +00:00
prahaladdarkin
27ec871185
System Artifact Manager database schema creation, model definitons, and tests ( #16678 )
...
Closes:
https://github.com/goharbor/harbor/issues/16540
https://github.com/goharbor/harbor/issues/16541
https://github.com/goharbor/harbor/issues/16542
Signed-off-by: prahaladdarkin <prahaladd@vmware.com>
2022-05-09 17:32:57 +08:00
MinerYang
1f797fafc4
add lint with golangci-lint, remove golint ( #16821 )
...
Signed-off-by: yminer <yminer@vmmware.com>
test ut_install.sh
Signed-off-by: yminer <yminer@vmmware.com>
test ut_install.sh001
Signed-off-by: yminer <yminer@vmmware.com>
test ut_install002
Signed-off-by: yminer <yminer@vmmware.com>
use curl binary to download golangcilint instead of go get
Signed-off-by: yminer <yminer@vmmware.com>
test ut-ci make lint
Signed-off-by: yminer <yminer@vmmware.com>
check ci GO111MODULE
Signed-off-by: yminer <yminer@vmmware.com>
test ci go env
Signed-off-by: yminer <yminer@vmmware.com>
test ci goenv 002
Signed-off-by: yminer <yminer@vmmware.com>
test ci GO111MODULE=auto
Signed-off-by: yminer <yminer@vmmware.com>
ci test entire ut_install.sh
Signed-off-by: yminer <yminer@vmmware.com>
remove needless debug comment
Signed-off-by: yminer <yminer@vmmware.com>
Co-authored-by: yminer <yminer@vmmware.com>
2022-05-09 11:19:02 +08:00
Wang Yan
c333218ba2
fix close response missing ( #16820 )
...
It has to close the http response on deleting manifest
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-05-07 13:03:15 +08:00
Shengwen YU
2dceffe457
Merge pull request #16790 from zyyw/issue-16747-improve-gc-log
...
fix: improve GC log message
2022-05-07 09:16:06 +08:00
Shengwen Yu
d0c82db519
fix: improve GC log message
...
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-05-06 15:01:45 +08:00
Shijun Sun
584245ec4d
Improve replication policy datagrid ( #16806 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-05-05 17:36:11 +08:00
Simon Alling
16f38bc591
Fix lint errors in portal ( #16799 )
...
This PR fixes all lint errors reported by TSLint (`npm run lint` in `src/portal/`).
TSLint also reports multiple warnings (see #16798 ), but this PR doesn't fix any of them.
Signed-off-by: Simon Alling <alling.simon@gmail.com>
2022-05-05 13:48:09 +08:00
Simon Alling
bb007f70bb
Refactor portal language code ( #16795 )
...
* Refactor portal language code
This PR makes the following improvements:
* The language code is DRYed up by defining `supportedLangs` in terms of `LANGUAGES` (previously `languageNames`).
* The language selection dropdown code is DRYed up similarly.
* The Angular locale registration code is DRYed up similarly: the omission of a supported language is now a static type error.
The above improvements mean that it's now impossible to forget to include a supported language in any of those contexts.
Furthermore:
* The type of supported languages is replaced by a more accurate one than `string`, namely `SupportedLanguage`.
* The value acquired from localStorage will never be used unless it is in fact a supported language. (Today, the GUI breaks pretty badly and errors are spammed in the console if localStorage contains an invalid value.)
* Redundant implicit existence checks such as `localStorage &&` and `browserCultureLang &&` are removed.
* The implementation of `initLangauge` is generally simplified and clarified.
Signed-off-by: Simon Alling <alling.simon@gmail.com>
* Restore accidentally deleted date check
Signed-off-by: Simon Alling <alling.simon@gmail.com>
2022-05-05 13:16:41 +08:00
Shijun Sun
ca019f4030
Upgrade Angular to 13.3.4 ( #16772 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-04-29 16:24:30 +08:00
Shijun Sun
a5da06078f
Store default page size to local storage ( #16753 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-04-29 16:24:07 +08:00
Shengwen YU
9821bea610
Merge pull request #16780 from zyyw/fix-registry-redis.patch
...
fix: registry/redis.patch & registry/builder
2022-04-29 15:51:54 +08:00
Shengwen Yu
3e8bf9faed
fix: registry/redis.patch & registry/builder
...
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2022-04-29 08:51:49 +08:00
Wang Yan
98c52e4478
enable default to build bin ( #16763 )
...
Change the default behavrior of building binaries for all the third parties to true.
Signed-off-by: Wang Yan <wangyan@vmware.com>
2022-04-28 17:13:41 +08:00
MinerYang
615a4cbb52
install only htpasswd binary from photon package httpd ( #16771 )
...
Signed-off-by: yminer <yminer@vmmware.com>
cpio -u
Signed-off-by: yminer <yminer@vmmware.com>
Co-authored-by: yminer <yminer@vmmware.com>
2022-04-28 13:20:03 +08:00
MinerYang
083b44e719
bump up astaxie/beego@v1.12.1 to beego/beego/@v1.12.7 ( #16770 )
...
Signed-off-by: yminer <yminer@vmmware.com>
goo mod tidy
Signed-off-by: yminer <yminer@vmmware.com>
Co-authored-by: yminer <yminer@vmmware.com>
2022-04-28 11:58:44 +08:00
Orlix
030c61059e
Merge pull request #16634 from OrlinVasilev/auto-release-notes
...
Add release.yml to automate release notes #16633
2022-04-27 13:21:41 +03:00
OrlinVasilev
27463f4ef4
Add release.yml to automate release notes #16633
...
Use github autogeneration release notes and add action to check if the PR has labels
Complete and more readable relase notes
https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
Signed-off-by: OrlinVasilev <ovasilev@vmware.com>
2022-04-27 10:48:31 +03:00
Yang Jiao
18b9856dc5
Add imgpkg copy test case
...
Add this test case to make sure imgpkg copy to Harbor works.
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-27 06:25:11 +00:00
Orlix
d68b7819ad
Merge pull request #16699 from OrlinVasilev/stale-issues-prs
...
CI: Replace stale.yaml with stale GH Actions
2022-04-26 11:11:43 +03:00
Chenyu Zhang
bb53493607
Merge pull request #16593 from chlins/feat/cache-layer-for-artifact
...
feat: add cache layer for artifact
2022-04-26 10:57:50 +08:00
Shijun Sun
23b22c8288
Fix some css style issues ( #16709 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-04-26 09:22:55 +08:00
Shijun Sun
bef9f5f5f1
Provide more useful error info when editing a problematic replication rule ( #16736 )
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2022-04-26 09:21:46 +08:00
chlins
8c223135e7
feat: add cache layer for artifact ( #16739 )
...
Implement cache layer for resource artifact and define common
cache manager and workflow. Also add cache related options to
configuration yaml.
Signed-off-by: chlins <chenyuzh@vmware.com>
2022-04-25 18:01:45 +08:00
Daniel Pacak
fbff7ab5cb
chore(deps): bump Trivy adapter from v0.26.0 to v0.28.0 ( #16729 )
...
Trivy replaced the --version flag with version subcommand.
Resolves : #16554
Resolves : #16555
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
2022-04-25 11:00:51 +02:00
Chenyu Zhang
0f6f1e8743
Merge pull request #16723 from tibeer/bug/typo_in_swagger_description
...
fixed typo in legacy_swagger.yaml file
2022-04-25 16:57:27 +08:00
Yang Jiao
0c8754f585
Merge pull request #16737 from YangJiao0817/add-pull-policy-replication
...
Add test case for Enable Deployment Security Policy replication
2022-04-25 15:38:14 +08:00
Yang Jiao
1207982925
Add test case for Enable Deployment Security Policy replication
...
Add test cases for these three different scenarios to ensure that Replication functions correctly after Deployment Security Policy is enabled
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-04-25 02:59:20 +00:00
Tim Beermann
25a5f66568
fixed typo in legaxy_swagger.yaml file
...
Signed-off-by: Tim Beermann <beermann@osism.tech>
2022-04-20 10:02:22 +02:00
Vadim Bauer
6ff23a4b92
Merge pull request #16712 from alrs/scan-err
...
pkg/scan: fix dropped error
2022-04-20 07:37:56 +02:00
Lars Lehtonen
ef835e107a
pkg/scan: fix dropped error
...
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2022-04-18 10:34:27 -07:00