Commit Graph

721 Commits

Author SHA1 Message Date
Wang Yan
7e674ec389
bump up required docker compose version to 1.18 (#7737)
Signed-off-by: wang yan <wangyan@vmware.com>
2019-05-09 15:35:42 +08:00
Meina Zhou
3869c6ca56 add swagger user guide
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2019-05-09 13:50:33 +08:00
Wang Yan
c028b281ea
Update required docker and docker-compose version (#7733)
Signed-off-by: wang yan <wangyan@vmware.com>
2019-05-09 13:29:07 +08:00
Haining Henry Zhang
b5412b9476 update documents (#7727)
Signed-off-by: Henry Zhang <haininghenryzh@vmware.com>
2019-05-09 09:49:30 +08:00
Tariq Ibrahim
20b328daab
Minor documentation improvements for harbor
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
2019-05-06 10:52:43 -07:00
Daniel Jiang
2ca5e04904
Merge pull request #7053 from JoeWrightss/patch-2
Fix some misspells in file
2019-04-29 18:40:00 +08:00
Daniel Jiang
02cf75c142 Add Ext URL to response of systeminfo API
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-04-29 13:31:52 +08:00
Daniel Jiang
1fdc2e6ba9 Provide API to generate CLI secret
This commit provide an API to allow a user that is onboarded via OIDC
authn update his CLI secret.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-04-22 13:34:12 +08:00
wang yan
e017294f71 merge with master latest
Signed-off-by: wang yan <wangyan@vmware.com>
2019-04-17 17:52:39 +08:00
Wenkai Yin
bf43c39026 Update swagger
Remove the "source namespace" property of replication policy

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-04-16 18:30:22 +08:00
Wang Yan
fd353a8f7f
Fix swagger typo for updating robot account status (#7398)
Signed-off-by: wang yan <wangyan@vmware.com>
2019-04-16 17:18:17 +08:00
Wenkai Yin
1f574e7d10
Merge pull request #7354 from wy65701436/replication_ng_namespace
Add api to get namespaces of registry
2019-04-11 23:44:24 +08:00
wang yan
117c36d52c Add api to get namespaces of registry
To query the namespace of the registry according to its ID.

Signed-off-by: wang yan <wangyan@vmware.com>
2019-04-11 23:17:33 +08:00
Wenkai Yin
a2fcb41b31 Fix bug in ping registry API
Fix bug in ping registry API: accept both ID and other properties

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-04-11 18:00:44 +08:00
stonezdj(Daojun Zhang)
0d3865c0e8
Merge pull request #7111 from wy65701436/robot-account-doc
Add document for robot account
2019-04-10 17:39:11 +08:00
wang yan
57e7305104 Update doc for Robot Accounts per review comments
Signed-off-by: wang yan <wangyan@vmware.com>
2019-04-09 17:09:20 +08:00
cd1989
f71a110bec Add registry ping API
Signed-off-by: cd1989 <chende@caicloud.io>
2019-04-06 17:00:52 +08:00
Wenkai Yin
4116433de8
Merge pull request #7306 from ywk253100/190404_cleanup
Remove the useless replication code
2019-04-04 21:18:04 +08:00
Wenkai Yin
c2f702be2a Remove the useless replication code
This commit removes the useless replication code

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-04-04 20:56:25 +08:00
Wenkai Yin
b66b1f341e Merge remote-tracking branch 'upstream/master' into 190404_sync 2019-04-04 14:55:09 +08:00
cd1989
8968e82675 Allow edit registry description
Signed-off-by: cd1989 <chende@caicloud.io>
2019-04-03 19:47:14 +08:00
Daniel Jiang
76ea48d47b
Merge pull request #6997 from daixiang0/update-doc
docs/README.md: update old url
2019-04-02 10:08:10 +08:00
Wenkai Yin
71b706e60a Update the replication API
1. Add getting execution by ID API
2. Return registry detail info in listing policies API

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-03-30 20:46:02 +08:00
Wenkai Yin
b37f4018a6 Update the registry adapter interface
This commit adds the Info() method to the registry adapter interface

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-03-23 07:49:59 +08:00
Yan
8d3946a0e2
Refactor scan all api (#7120)
* Refactor scan all api

This commit is to let scan all api using admin job to handle schedule
management. After the PR, GC and scan all share unified code path.

Signed-off-by: wang yan <wangyan@vmware.com>

* update admin job api code according to review comments

Signed-off-by: wang yan <wangyan@vmware.com>

* Update test code and comments per review

Signed-off-by: wang yan <wangyan@vmware.com>
2019-03-22 17:52:21 +08:00
Wenkai Yin
49cf50adb1 Merge remote-tracking branch 'upstream/master' into 190324_sync
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-03-22 15:55:52 +08:00
Meina Zhou
130e132f86 Merge branch 'master' into replication_ng
Signed-off-by: Meina Zhou <meinaz@vmware.com>
2019-03-21 14:16:33 +08:00
Wenkai Yin
c65d5e6669 Update listing/getting replication adapter API
This commit updates the listing/getting replication adapter API

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-03-20 05:30:15 +08:00
wang yan
73d68903d6 update robot account return attribute
Signed-off-by: wang yan <wangyan@vmware.com>
2019-03-14 13:57:50 +08:00
De Chen
41e290a17f
Merge pull request #6877 from yeya24/patch/fixtypo
fix some typos
2019-03-12 20:07:15 +08:00
Wenkai Yin
772367498f Merge remote-tracking branch 'upstream/master' into 190311_sync 2019-03-11 20:34:49 +08:00
wang yan
8be3129f11 Add document for robot account
Signed-off-by: wang yan <wangyan@vmware.com>
2019-03-11 17:13:14 +08:00
Wenkai Yin
d1f4c20e64 Implement replication policy management API
This commit implements the replication policy management API

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-03-09 01:32:51 +08:00
Wenkai Yin
ec2a7f9239 Implement replication operation API
This commit implements the replication operation related APIs

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-03-08 10:06:33 +08:00
Wenkai Yin
db7a709aad
Merge pull request #7063 from heww/users-search
Add users search API
2019-03-07 15:58:26 +08:00
He Weiwei
20556aebd2 Add users search API
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2019-03-07 12:47:26 +08:00
Wenkai Yin
7f49151115 Implement replication adapter API
This commit implements the replication adapter API

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-03-06 15:01:33 +08:00
wang yan
e373167546 update gc api to support raw cron string
Signed-off-by: wang yan <wangyan@vmware.com>
2019-03-05 16:31:35 +08:00
cd1989
b00098d492 Add unit tests and fix CI
Signed-off-by: cd1989 <chende@caicloud.io>
2019-03-05 15:37:36 +08:00
zhoulin xie
33b7c41f8b Fix some misspells in file
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
2019-03-01 15:13:30 +08:00
wang yan
91aa67a541 Update expiration variable name to expiresat/tokenduration
Signed-off-by: wang yan <wangyan@vmware.com>
2019-02-25 11:55:42 +08:00
wang yan
47a09b5891 add expiration of robot account
This commit is to make the expiration of robot account configurable

1, The expiration could be set by system admin in the configuation page or
by /api/config with robot_token_expiration=60, the default value is 30 days.
2, The expiration could be shown in the robot account infor both on UI and API.

Signed-off-by: wang yan <wangyan@vmware.com>
2019-02-22 18:42:34 +08:00
stonezdj
0cba36d79f Remove everything of adminserver
Signed-off-by: stonezdj <stonezdj@gmail.com>
2019-02-22 16:34:39 +08:00
Xiang Dai
fc4c9887bd docs/README.md: update old url
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-22 10:30:52 +08:00
Qian Deng
db05024755
Merge pull request #6919 from heww/permissions-doc
Add doc for permissions
2019-02-20 13:54:07 +08:00
stonezdj
1ae5126bb4 Refactor adminserver stage 3: replace config api and change ut settings
Signed-off-by: stonezdj <stonezdj@gmail.com>
2019-02-18 14:06:19 +08:00
danfengliu
eaedd89c25 add api test case for robot user, and modify swagger.yaml for wrong type of return value. (#6900)
Signed-off-by: danfengliu <danfengl@vmware.com>
2019-02-18 13:47:16 +08:00
He Weiwei
4e2afe3a03 Add doc for permissions
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2019-02-14 10:23:41 +08:00
Yan
e9556a4cec
Add post response for robot account API (#6906)
This commit is to do:
1, Add post response on creating robot account
2, Lower-case the attribute of response

Signed-off-by: wang yan <wangyan@vmware.com>
2019-02-13 14:40:04 +08:00
Wenkai Yin
9c8c96ad4f
Merge pull request #6721 from SDBrett/clair-import-doc
Updated clair db import for Harbor 1.6+
2019-02-12 19:54:55 +08:00
yeya24
628b94db19 fix some typos
Signed-off-by: yeya24 <ben.ye@daocloud.io>
2019-02-05 12:03:52 +08:00
Yan
a77684bf1d
add API doc of robot account (#6846)
Signed-off-by: wang yan <wangyan@vmware.com>
2019-01-30 14:10:26 +08:00
Brett Johnson
4c9b98a463 Updated clair db import for Harbor 1.6+
Signed-off-by: Brett Johnson <brett@sdbrett.com>
2019-01-29 09:14:23 +11:00
He Weiwei
8b5e68073d Implement api for get current user permissions
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2019-01-28 18:06:52 +08:00
He Weiwei
3f8e06a8bc Support master role for project member create and update apis (#6780)
* Support master role for project member create and update apis

Signed-off-by: He Weiwei <hweiwei@vmware.com>

* Fix description for role_id in swagger.yaml

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2019-01-23 14:56:23 +08:00
Dan Norris
fa4280887d
Fix Swagger client generation for a few chartrepo endpoints
It looks like the Swagger for `ChartVersions` and `ChartVersionDetails`
were missing fields to properly generate a client.

This fixes the problem by adding the correct `refs` so that the client
produces an output when making an API call.

In Go, this generates something like:

```Go
/*GetChartrepoRepoChartsNameVersionOK handles this case with default header values.

Successfully retrieved the chart version
*/
type GetChartrepoRepoChartsNameVersionOK struct {
	Payload *models.ChartVersionDetails
}

...

/*GetChartrepoRepoChartsNameOK handles this case with default header values.

Retrieved all versions of the specified chart
*/
type GetChartrepoRepoChartsNameOK struct {
	Payload models.ChartVersions
}
```

Signed-off-by: Dan Norris <dan.norris@netapp.com>
2019-01-22 08:59:06 -08:00
Wenkai Yin
f8d9653419
Merge pull request #6737 from ywk253100/190109_health_check
Implement the unified health check API
2019-01-16 18:14:14 +08:00
Wenkai Yin
be4455ec1b Implement the unified health check API
The commit implements an unified health check API for all Harbor services

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-01-16 17:21:04 +08:00
Daniel Jiang
a1d4bfd332
Merge pull request #6344 from reasonerjt/bump-up-golang
Bump up golang to 1.11.2
2019-01-11 16:15:59 +08:00
Daniel Jiang
5d59d6fab8 Bump up golang to 1.11.2
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-01-11 14:44:32 +08:00
FangyuanCheng
0fb141e4ee add get_study document
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2019-01-11 14:01:21 +08:00
FangyuanCheng
eb6e3504d8 Modify the developer center version number to 1.7.0
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-12-19 17:18:54 +08:00
Steven Zou
007a37443e
Merge pull request #6495 from kofj/doc_for_build_history
update user_guide about the build history.
2018-12-19 10:58:07 +08:00
Frank Kung
aa1c1ce489 update user_guide about the build history.
Signed-off-by: Frank Kung <kfanjian@gmail.com>
2018-12-18 15:50:01 +08:00
Niklas Wik
86f4d11839 Update required docker as multi build with FROM as used which is introduced in Docker 17.05 (#6530)
Signed-off-by: Niklas Wik <niklas.wik@nokia.com>
2018-12-14 12:50:41 +08:00
Mario Weigel
187fccae6f Minor corrections to swagger spec
Signed-off-by: Mario Weigel <mario.weigel@gmail.com>
2018-12-12 21:58:24 +13:00
Steven Zou
60f0ec594d
Merge pull request #6437 from cd1989/update-retag-user-guide
Update user guide for retag function
2018-12-06 22:34:13 -08:00
Daniel Jiang
29d5b5da72 Return 409 when there is a scan all job running (#6460)
* Return 409 when user trigger another "scan all"

This commit fixes #6418, that when multiple "scan all" jobs are
triggered, the API should not return 500.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>

* Update swagger to add 409 to scanAll API

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-12-06 11:46:38 +08:00
陈德
7e9a12fb22 Update user guide for retag function
Signed-off-by: 陈德 <chende@caicloud.io>
2018-12-06 09:23:40 +08:00
Daniel Jiang
c9d51f2a75 Refine migration guide for 1.7
Fixes #6449

1. Simplify the steps for backing up database.
2. Add the missing command to pull migrator image.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-12-05 11:03:09 -08:00
Wenkai Yin
538082ceb6 Remove the permission checking for getcert API (#6436)
The Harbor root cert can be downloaded by all users now, so the permission checking is not needed anymore

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2018-12-05 12:15:23 +08:00
danfengliu
b4c7663f5f
Add API test case scan all images and test case API test case list helm charts. (#6388)
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-12-03 17:05:06 +08:00
Daniel Jiang
ec32603917
Merge pull request #6242 from ninjadq/update_user_guide
Update user guide screenshot
2018-12-02 22:48:03 -08:00
Daniel Jiang
566f2e4841 Update the data migration guide (#6389)
* Update the data migration guide

Update the migration guide to reflect the change in data migration
process after v1.6.0

For simplification, removed the various steps to migrate from previous
versions to latest.  User will need to refer to guide in previous
releases.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>

* Update according to review

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2018-12-02 15:45:51 +08:00
Nathan Lowe
00fab5be7b Fix link to Online GC in user guide (#6404)
Signed-off-by: Nathan Lowe <public@nlowe.me>
2018-12-02 15:37:54 +08:00
Daniel Jiang
6a127ba201
Merge pull request #6312 from wy65701436/update-gc-document
add document for gc
2018-11-30 18:18:27 +08:00
wang yan
1f947cf3c8 Remote delete repositories description and point it to gc
Signed-off-by: wang yan <wangyan@vmware.com>
2018-11-30 17:02:32 +08:00
Steven Zou
ec2ad4d0b8
Merge pull request #6093 from cd1989/replication-record-id
Add op uuid to image replication
2018-11-30 14:54:43 +08:00
Daniel Jiang
b953dfe74f
Merge pull request #6342 from heww/update-installation-guide-doc
update installation guide doc
2018-11-30 10:37:14 +08:00
He Weiwei
417e49fae7 update parameters for registry storage
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2018-11-28 18:35:32 +08:00
Steven Zou
bba81cfc93 Restore the missing picture of CONTRIBUTING.md file
Signed-off-by: Steven Zou <szou@vmware.com>
2018-11-28 17:40:51 +08:00
danfengliu
c4bf65162c
add api test case for garbage collection (#6366)
Add API test case for garbage collection, and add swagger.yaml, GC and chart feature were updated in swagger.yaml.
Signed-off-by: danfengliu <danfengl@vmware.com>
2018-11-27 19:17:41 +08:00
Qian Deng
7724d1fd5a Update user guide screenshot
update the screenshots in user guide
update document in user guide

Signed-off-by: Qian Deng <dengq@vmware.com>
2018-11-27 15:43:17 +08:00
wang yan
65a28c044d Updates words per comments
Signed-off-by: wang yan <wangyan@vmware.com>
2018-11-26 13:56:49 +08:00
He Weiwei
8a1c9e8bd3 rename UI to Portal
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2018-11-26 13:02:12 +08:00
He Weiwei
a7ee340d2b update installation guide doc
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2018-11-26 12:42:00 +08:00
wang yan
d138587478 add document for gc
This commit is to update user guide to introduce the handbook of GC

Signed-off-by: wang yan <wangyan@vmware.com>
2018-11-20 18:38:12 +08:00
Dan Kohn
4be4618705
Use updated Harbor logo
Signed-off-by: Dan Kohn <dan@dankohn.com>

Logo is from https://github.com/cncf/artwork
2018-11-18 15:56:53 -05:00
Dan Kohn
963a104380
Delete harbor_logo.png
Signed-off-by: Dan Kohn <dan@dankohn.com>
2018-11-18 15:54:44 -05:00
James Zabala
a5c0e09759
Merge pull request #6206 from jeffweilee/master
Refine Configure_https.md
2018-11-06 08:55:11 -05:00
Jeff Lee Wei Che
464fa3736c Update configure_https.md
Signed-off-by: jeffweilee <jeffweilee@gmail.com>

Update configure_https.md

Signed-off-by: jeffweilee <jeffweilee@gmail.com>

Update configure_https.md

Signed-off-by: jeffweilee <jeffweilee@gmail.com>

Update configure_https.md

1. There is no need to have Getting Client Certificate Section. All we need is CA and Server Certificate.
2. Modify subtitle in Configuration and Installation:
1) Configure Server Certificate and Key for Harbor
2) Configure Server Certificate, Key and CA for Docker
3) Configure Harbor
3. Use yourdomain.com instead of reg.yourdomain.com throughout the article for better understanding.

Signed-off-by: jeffweilee <jeffweilee@gmail.com>

Update configure_https.md

1. There is no need to have Getting Client Certificate Section. All we need is CA and Server Certificate.
2. Modify subtitle in Configuration and Installation:
1) Configure Server Certificate and Key for Harbor
2) Configure Server Certificate, Key and CA for Docker
3) Configure Harbor
3. Use yourdomain.com instead of reg.yourdomain.com throughout the article for better understanding.

Signed-off-by: jeffweilee <jeffweilee@gmail.com>

rebase PR of Refine Configure_https.md

Signed-off-by: jeffweilee <jeffweilee@gmail.com>

signoff

Signed-off-by: jeffweilee <jeffweilee@gmail.com>
2018-11-06 21:10:56 +08:00
wang yan
9105bb6641 Fix issues on swagger file
1, Add the delete of replication policy.
2, Fix Semantic error at paths./repositories/{repo_name}/tags

Signed-off-by: wang yan <wangyan@vmware.com>
2018-11-06 13:38:59 +08:00
FangyuanCheng
8515276f98 Modify the permission image path of the developer and project manager in the user guide.
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-25 17:08:22 +08:00
Yan
130235386d
Update swaggger documents found by api test development (#6102)
Signed-off-by: wang yan <wangyan@vmware.com>
2018-10-24 13:23:09 +08:00
Daniel Jiang
2920ec5f9b
Merge pull request #6077 from clouderati/update-copyright
Updating copyright notices
2018-10-23 18:38:15 +08:00
Qian Deng
64d83101f5
Merge pull request #6017 from steven-zou/update_swagger_chart_labels_API
Update swagger document to reflect the changes of Chart API for supporting labels
2018-10-22 10:15:19 +08:00
陈德
1ffd9d8fba Add op uuid to image replication
Signed-off-by: 陈德 <chende@caicloud.io>
2018-10-21 23:55:57 +08:00
Steven Zou
db24cbe25a
Merge pull request #5779 from cd1989/images-retag
Merge Images retag
2018-10-19 11:04:48 +08:00
clouderati
9d401e553d Updating demo_server.md
Updating list of avenues users can leverage to ping us if demo server
environment is malfunctioning.

Signed-off-by: clouderati <35942204+clouderati@users.noreply.github.com>
2018-10-18 20:04:14 +00:00
FangyuanCheng
6d257de6b1 Change the rights of developers and project admin in user guide.
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
2018-10-18 09:27:23 +08:00