Daniel Jiang
b4a4eb11c6
Merge pull request #4459 from ywk253100/180321_package_upgrade
...
Upgrade packages used by Harbor
2018-03-22 19:03:10 +08:00
Steven Zou
579b70c5e4
Inject logger into the execution context of running job for logging
...
define logger interface
implement a logger base on common log package
add getting log API
inject logger to the job execution context
2018-03-22 18:29:39 +08:00
Steven Zou
b001180d26
Merge branch 'job_service' of https://github.com/vmware/harbor into job_service
2018-03-22 13:43:12 +08:00
Steven Zou
e5f8beb35f
Support status hook mechanism to report job status changes
...
refactor scheduler to extarct separate sub/pub system
fix bug in getJob
return all the stats data of running pools in the health check API
2018-03-22 13:41:00 +08:00
Wenkai Yin
c6e65d2ded
Fuzzy matching repository name in GET repositories API
2018-03-22 13:38:26 +08:00
Wenkai Yin
0b7d4af4c1
Upgrade packages used by Harbor
2018-03-22 13:10:49 +08:00
Tan Jiang
b8ec419c8e
Add missed package to fix compilation issue
2018-03-21 16:59:32 +08:00
Tan Jiang
483496ed93
remove swp file
2018-03-21 16:32:21 +08:00
Tan Jiang
613464bc16
Migrate scan job to job service V1 phase1
2018-03-21 16:25:32 +08:00
Tan Jiang
6303785b1b
Merge branch 'job_service' of https://github.com/vmware/harbor into scan-job-migrate
2018-03-21 13:06:40 +08:00
Yan
5edbd00318
Revise harbor build version ( #4445 )
2018-03-21 13:03:49 +08:00
Wenkai Yin
838b439560
Implement filter repository and tags by label API
2018-03-21 10:51:06 +08:00
Wenkai Yin
a7a72f78bd
Return role and repository count info in GET project API
2018-03-20 19:09:06 +08:00
Steven Zou
ac544b3ead
Support job related operational actions
...
support stop job
support cancel running generic job
support retry failed job
support checkin details progress of job
2018-03-20 18:03:04 +08:00
Tan Jiang
00825d3ca4
Merge branch 'job_service' of https://github.com/vmware/harbor into scan-job-migrate
2018-03-20 17:37:27 +08:00
Steven Zou
fbc24d85db
Support job operation actions like stop/cancel
2018-03-16 19:38:51 +08:00
Tan Jiang
b1d1e039dc
Merge branch 'job_service' of https://github.com/vmware/harbor into scan-job-migrate
2018-03-16 15:30:53 +08:00
Daniel Jiang
cbedf099b5
Merge pull request #4342 from yixingjia/apimonitor
...
Add monitor API for Harbor components
2018-03-16 14:56:58 +08:00
Steven Zou
2f97970484
Support update job status for both generic and periodic job
...
refactor scheduler
refactor period.enqueuer
add stats manager component
2018-03-15 20:23:42 +08:00
Steven Zou
be75145858
Implement API service of getting job stats
2018-03-15 14:33:57 +08:00
Steven Zou
ea912729ec
fix golint issues in code
2018-03-15 12:31:54 +08:00
Steven Zou
4b4e0ddfff
Refactor job programming model
...
refine job context
remove setXXX injection methods in job.Interface
use parameters of Run to pass context and parameters
2018-03-15 12:26:01 +08:00
yixingj
4255ed167a
Add monitor API for Harbor components.
...
1>AdminServer.
2>UI.
2018-03-15 10:39:55 +08:00
Steven Zou
28d02931d2
Support saving job stats to the baclend for the redis workerpool
2018-03-15 09:56:07 +08:00
stonezdj
44fc373c6d
Add LDAP Group Search Configure Param
2018-03-15 06:16:47 +08:00
Steven Zou
b61dc39278
Refactor the job execution context interface
2018-03-14 19:17:38 +08:00
Steven Zou
5f5fb5b6ec
Refine the context related things
...
change job context to interface
move job conetxt to the env package
move the concrete job implementation to separate folder
2018-03-14 18:24:53 +08:00
Steven Zou
414c36205c
Support API service of checking stats of the worker pool
2018-03-14 16:59:00 +08:00
Steven Zou
6b46844565
Add sweeper to clear the outdated data before the workerpool is starting
2018-03-14 15:52:00 +08:00
Daniel Jiang
0efd8e3c54
Merge pull request #4396 from ywk253100/180309_label_resource
...
Implement adding/removing labels to/from repositories and images API
2018-03-14 14:15:31 +08:00
Wenkai Yin
bcf81224ad
Update according to the comments
2018-03-14 13:42:19 +08:00
Steven Zou
7b8971e930
Implement periodically enqueue job feature
...
add scheduler based on redis
add job wrapper for redis driver
other necessary modules
2018-03-13 23:58:07 +08:00
Wenkai Yin
36b9c4e458
Implement adding/removing labels to/from repositories and images API
2018-03-12 19:30:05 +08:00
Tan Jiang
b81b55b0c1
Extend the length of project name in request validation
2018-03-12 16:07:06 +08:00
yixingjia
ac05806dec
Reload the attributes of Harbor db and Clair db when restart Harbor. ( #4349 )
2018-03-12 15:40:45 +08:00
Wenkai Yin
379f113452
Implement label management API
2018-03-09 12:17:27 +08:00
Wenkai Yin
685140cda8
Merge pull request #4375 from ywk253100/180308_smtp_tls
...
Do the authentication with CRAM-MD5 when the connection is insecure
2018-03-08 17:42:18 +08:00
pfh
e017f63103
Modify pagenation in Use, project name exist issue #4350 #4205 #4177
2018-03-08 16:25:24 +08:00
Wenkai Yin
0a8929b85e
Do the authentication with CRAM-MD5 when the connection is insecure
2018-03-08 14:21:44 +08:00
Steven Zou
7a3c35d178
Implement the base framework of job service V2
...
add API server
add redis worker pool
add configuration loader
add bootstrap process
add vendor via dep
2018-03-08 13:16:57 +08:00
pfh
805e4aa4db
Modify fileter problem and input length #4185 #4264
2018-03-07 17:01:00 +08:00
pfh
b2fb33ba0d
Modify replication rule from page to dialog #4296
2018-03-07 10:03:08 +08:00
Tan Jiang
2f2bc7f3ef
add ut
2018-03-01 18:52:09 +08:00
Tan Jiang
3a5bff1615
Refine error returned by Authenticator
...
There has been inconsistency in terms of the error returned by
authenticator.
This commit introduces an error ErrAuth to explicitly flag an
authentication failure, which should be treated as user error such
as "invalid credentials", and other errors will be treated as system error.
2018-03-01 18:19:46 +08:00
Tan Jiang
fc4e427c41
Return zero instead of error if the volume directory is not found at admin server
2018-02-28 13:52:33 +08:00
Daniel Jiang
ef54647749
Merge pull request #4230 from stonezdj/project_member_refactor2
...
Refactor project member
2018-02-27 14:33:26 +08:00
patfrat
3159e2c514
Add French ui_ng translation
2018-02-26 14:53:59 +01:00
stonezdj
4c6d1488bd
Add UT
2018-02-09 15:29:08 +08:00
stonezdj
f138067242
Refactor project member
2018-02-09 10:38:51 +08:00
Daniel Jiang
bd12a3f958
Merge pull request #4235 from ywk253100/180206_godep
...
Specify the versions of packages used in golang dep
2018-02-08 12:38:02 +08:00
Qian Deng
83ec190dbf
Merge pull request #4229 from ninjadq/fix_ui_test_case
...
Fix UI that break test case
2018-02-06 19:19:50 +08:00
Wenkai Yin
4e6800745b
Specify the versions of packages used in golang dep
2018-02-06 18:49:40 +08:00
Deng, Qian
207ce035e1
Fix UI that break test case
2018-02-06 10:52:53 +08:00
Tan Jiang
40b6cb0d43
Return UAA error to Security Context layer
2018-02-05 21:00:19 +08:00
Daniel Jiang
87ca267b0f
Merge pull request #4221 from ywk253100/180131_beego_1.9.2
...
Upgrade beego 1.6.1 to 1.9.0
2018-02-05 19:17:44 +08:00
Wenkai Yin
10f56d26fe
Change codes to make everything OK after upgrading to beego 1.9.0
2018-02-05 13:07:52 +08:00
Wenkai Yin
e7b431899e
Upgrade beego from 1.6.1 to 1.9.0
2018-02-05 13:07:52 +08:00
Qian Deng
3b36236dc0
Merge pull request #4206 from ninjadq/open_add_member_modal_too_long
...
Fix bug open add member modal time too long
2018-02-01 14:57:47 +08:00
Wenkai Yin
58a3c590bd
Merge pull request #4207 from ywk253100/180131_beego_1.9.2
...
Ignore packages under tests in go dep
2018-02-01 13:51:48 +08:00
Wenkai Yin
ca92475fc2
Ignore packages under tests in go dep
2018-02-01 13:21:52 +08:00
Deng, Qian
26d6a04257
Fix bug open add member modal time too long
2018-02-01 12:57:40 +08:00
pfh
30a64b1923
Modify endpoint button name unsame with others issue
2018-01-31 16:43:22 +08:00
Deng, Qian
32793e2859
Add force refresh to new user form
2018-01-31 10:43:12 +08:00
Qian Deng
11288ccc0c
Merge pull request #4187 from ninjadq/leaving_repo_dialog
...
Fix open confirmation dialog when leving repo
2018-01-30 19:33:34 +08:00
pfh
09c1c39cd3
delete username and pwd in replication rule
2018-01-30 18:47:27 +08:00
Deng, Qian
f14bab1976
Fix open confirmation dialog when leving repo
2018-01-30 17:51:15 +08:00
pfh
715a49834b
Merge remote-tracking branch 'upstream/master' into batchDelection
2018-01-30 13:22:06 +08:00
Qian Deng
ef1ed75ac9
Merge pull request #4175 from ninjadq/only_db_can_create_delete_user
...
Enhance Create && Delete button should diabled if not db auth
2018-01-30 13:13:05 +08:00
pfh
84c9a409ed
Stop bubbling event in replication list
2018-01-30 11:53:53 +08:00
pfh
5e14601d2e
Merge remote-tracking branch 'upstream/master' into batchDelection
2018-01-30 11:45:26 +08:00
pfh
008cf32bb3
Modify users about delete myself display issue #4164
2018-01-30 10:55:11 +08:00
Deng, Qian
b31a91b64a
Fix UI bugs
...
Add deleting confirmation dialog back
Change buttons' style on tag component
2018-01-29 21:54:59 +08:00
Deng, Qian
afc56b0645
Enhance Create && Delete button should diabled if not db auth
2018-01-29 21:38:53 +08:00
Qian Deng
02554204e4
Merge pull request #4139 from ninjadq/fix_description_too_long
...
Fix description too long
2018-01-29 21:27:28 +08:00
pfh
63dcb27d08
Modify replication list unsave when modify username or pwd
2018-01-29 17:38:49 +08:00
Wenkai Yin
9022abfc13
Fix code issues found by Gas
2018-01-29 15:17:03 +08:00
Deng, Qian
8f1fa387c2
Fix admin rename tooltip
2018-01-29 10:33:03 +08:00
Deng, Qian
86dac8bbb9
Fix relication description too long to display
2018-01-26 18:10:39 +08:00
pfh
cc894a39bf
Modify create endpoint ping icon undisappear auto about #4102
2018-01-26 15:44:10 +08:00
pfh
1dc6e57ffd
Modify issue about endpoint delection unfreash page
2018-01-26 15:03:29 +08:00
pfh
791004c1b5
Add username adn pwd for target and unselected project name and target first time
2018-01-26 12:11:16 +08:00
Deng, Qian
d536c64566
Update test cases for UI changes
2018-01-25 20:36:03 +08:00
Deng, Qian
a1c850cfdb
Display storage statistic only in filesystem mode
2018-01-25 20:36:03 +08:00
Deng, Qian
4a21f80b86
Add icon to buttons && change button group to buttons
2018-01-25 20:36:03 +08:00
Deng, Qian
bec2780576
Remove Confirmation on some simple batch actions
2018-01-25 20:36:02 +08:00
Deng, Qian
9a87c8b663
Fix bug tag size became exact number after reload data
2018-01-25 20:36:02 +08:00
Deng, Qian
08fd136c3c
Enhance admin rename Logout after admin rename
2018-01-25 20:36:02 +08:00
Daniel Jiang
2519601d9f
Merge pull request #4121 from reasonerjt/add-go-redsync-vendor
...
Include go-redsync v1.0.1 in vendor
2018-01-25 17:58:15 +08:00
Daniel Jiang
5e5c0d4556
Merge pull request #4118 from reasonerjt/master
...
Fix Nil pointer issue in login function
2018-01-24 18:29:41 +08:00
Tan Jiang
ea38b7eefe
Include go-redsync v1.0.1 in vendor
2018-01-24 15:30:20 +08:00
Tan Jiang
e9b656ce79
Fix Nil pointer issue in login function
2018-01-24 14:49:03 +08:00
pfh
5d35bed4d7
set replication list as single selection about #4107
2018-01-23 19:31:53 +08:00
pfh
f34ac6aa2b
Modify package version
2018-01-23 14:47:33 +08:00
pfh
db670a2b09
Merge remote-tracking branch 'upstream/master' into batchDelection
2018-01-23 14:40:48 +08:00
Wenkai Yin
785fc57147
Merge pull request #4097 from ywk253100/180122_config_api
...
Convert struct to json string when storing it to database as a configuration item
2018-01-23 11:03:44 +08:00
Wenkai Yin
0165fcc82b
Convert struct to json string when storing it to database as a configuration item
2018-01-22 20:01:28 +08:00
Qian Deng
bdb9d13590
Merge pull request #4072 from ninjadq/bugx_fix
...
Bugs fix
2018-01-22 17:56:02 +08:00
Tan Jiang
7ab1a2367a
Update testify in vendor folder to v1.2.0
2018-01-21 21:52:46 +08:00
Fuhui Peng (c)
7d7620593d
Modify create multiple replication rules with same name
2018-01-19 17:44:21 +08:00
Deng, Qian
e240290bc7
Merge branch 'master' into bugx_fix
2018-01-19 15:43:14 +08:00
Qian Deng
71baf937ea
Merge pull request #4057 from ninjadq/enhance_uaa_config
...
Fix UAA edit password bug
2018-01-19 15:34:43 +08:00
Wenkai Yin
515cac010a
Merge pull request #4071 from ywk253100/180117_policy_pagination
...
Add pagination support in listing replication policy API
2018-01-19 15:19:45 +08:00
stonezdj
b99a13cfa8
Fix bug 4073
2018-01-19 11:46:24 +08:00
Deng, Qian
86454d3e88
Fix project Name length issue
...
Extend the length of project name to 255
2018-01-18 18:51:16 +08:00
Wenkai Yin
69fa18c881
Merge pull request #4059 from ywk253100/180117_job_status
...
Support multiple status in query string of replication job listing API
2018-01-18 18:05:08 +08:00
Deng, Qian
873d537b17
Fix bug pull command not display regisrty ip or hostname
2018-01-18 17:58:17 +08:00
Deng, Qian
ea6fcd2aa1
Fix UAA edit password bug
...
Fix UAA edit password bug
Fix password edit bug
Remove unused code
Fix some tslint issue
2018-01-18 16:23:49 +08:00
Wenkai Yin
611709a7be
Add pagination support in listing replication policy API
2018-01-18 15:54:12 +08:00
Fuhui Peng (c)
5b921d59aa
Modify package.json
2018-01-18 15:08:45 +08:00
Fuhui Peng (c)
29e53817b9
Merge remote-tracking branch 'upstream/master' into batchDelection
2018-01-18 14:59:32 +08:00
Qian Deng
8f855ffc4e
Merge pull request #4037 from ninjadq/admin_rename_ui
...
add admin rename ui
2018-01-18 14:53:17 +08:00
Daniel Jiang
440f5e6364
Merge pull request #4039 from stonezdj/ldap_migrate_scope
...
Add update ldapScope for migrate
2018-01-18 14:12:06 +08:00
stone
c815dc01dd
Merge pull request #4043 from reasonerjt/uaa-bugfix
...
Read Email from UAA while onboarding user.
2018-01-18 14:04:35 +08:00
Deng, Qian
b884be3e72
Add admin rename ui Add UI Element for rename admin
2018-01-18 13:49:13 +08:00
Qian Deng
b61e0ec867
Merge pull request #3953 from ninjadq/fix_text_bugs
...
Fix bugs about i18n & text
2018-01-18 13:19:02 +08:00
pfh
757a99bc6e
Add add endpoint button in replication rule
...
Modify stop job button privilege
Modify dispay issue about replication rule
2018-01-17 19:46:07 +08:00
Deng, Qian
ac34c2c1da
Fix bugs about i18n & text
2018-01-17 17:24:07 +08:00
Wenkai Yin
9ec8b4d634
Support multiple status in query string of replication job listing API
2018-01-17 17:07:10 +08:00
stonezdj
01ba4e1ea8
Add update ldapScope for migrate
2018-01-17 14:01:57 +08:00
Tan Jiang
d5d913f51d
Read Email from UAA while onboarding user.
...
Will call the userinfo API of UAA to get user info and generage user
model based on the response. Also this commit include a change that
whenever the UAA Client is to be used it will update the configuraiton,
this is needed as we enable user to update the configuration of UAA via
UI.
2018-01-17 10:28:49 +08:00
Wenkai Yin
7ebcc82516
Fix bug: checking whether the status is null when listing replication jobs
2018-01-16 19:25:18 +08:00
Wenkai Yin
8cda2d8d65
Merge pull request #4036 from ywk253100/180116_s3
...
Propagate registry storage driver name to adminserver and return it in /api/systeminfo
2018-01-16 18:41:08 +08:00
pengpengshui
7537d0ff10
Merge pull request #4010 from pengpengshui/batchDelection
...
Modify replication list to batch delection mode
2018-01-16 17:59:20 +08:00
Qian Deng
5017670d00
Merge pull request #4005 from ninjadq/db_migrate_from_1_3_to_1_4
...
Update migration tool for v1.4
2018-01-16 17:04:54 +08:00
Wenkai Yin
53d5a2256a
Propagate registry storage driver name to adminserver and return it in /api/systeminfo
2018-01-16 16:57:28 +08:00
pfh
78dcdc409f
Modify replication list to batch delection mode and add admin privilege to project replication module
...
Modity text about new replication rule
2018-01-16 15:53:11 +08:00
Deng, Qian
b3e65ed71e
Update migration tool for v1.4
...
1. Update database meta file
2. Add migration file for 1.4
2018-01-16 15:38:51 +08:00
Wenkai Yin
e1a5958258
Merge pull request #4013 from ywk253100/180112_property_name
...
Update the value of trigger type and schedule type
2018-01-16 13:26:33 +08:00
Daniel Jiang
a9fe5564df
Merge pull request #4011 from ywk253100/180112_fix_404
...
Handle /harbor/* with IndexController to fix UI 404 Page Not Found error
2018-01-15 17:10:43 +08:00
Wenkai Yin
a1dd8c3bff
Merge pull request #4004 from ywk253100/180111_jobservice
...
Provide a mechanism to stop pending and retrying jobs
2018-01-15 12:55:44 +08:00
Tan Jiang
bc1366c3e5
Enable user to edit UAA settings on UI
2018-01-14 11:47:45 +08:00
Wenkai Yin
af8dbff4ce
Update the value of trigger type and schedule type
2018-01-12 16:19:41 +08:00
Tan Jiang
d6bf0ea11d
Remove data generated by dao_test after the test.
2018-01-12 15:56:30 +08:00
Wenkai Yin
27b4197459
Handle /harbor/* with IndexController to fix UI 404 Page Not Found error
2018-01-12 15:48:42 +08:00
Wenkai Yin
4070ed5152
Provide a mechanism to stop pending and retrying jobs
2018-01-12 15:29:20 +08:00
Daniel Jiang
43afd426bb
Merge pull request #3995 from reasonerjt/admin-rename
...
Provide API to rename admin
2018-01-12 13:59:13 +08:00
stone
ec173305a3
Merge pull request #3974 from stonezdj/ldap_ping_timeout
...
Setting timeout for ldap ping
2018-01-12 11:22:27 +08:00
Tan Jiang
a392a8dc29
Provide API to rename admin
...
This is to provide a workaround for very corner case that in user's
authentication backend (LDAP, UAA) has a user called "admin" and because
Harbor's super user is hard coded to "admin" it's not possible to login
the "admin" with credentials in LDAP or UAA.
To minimize the impact, we'll provide an internal API for user to update
the super user's username from "admin" to "admin@harbor.local", this API
can be called by "admin" only, and is not reversible.
2018-01-11 23:01:06 +08:00
stonezdj
c48c7f7b6a
Setting timeout for ldap ping
2018-01-10 15:14:30 +08:00
pengpengshui
7831a01f26
Merge pull request #3934 from pengpengshui/batchDelection
...
Modify filters' position and modify member module switch members' ap…
2018-01-10 14:50:52 +08:00
Wenkai Yin
e26b442c9c
Merge pull request #3951 from ywk253100/180104_replicate_interval
...
Manual starting replication will be rejected if there are pending/running jobs
2018-01-10 10:56:45 +08:00
pfh
49160e6b13
Modify repository filter's position and inline alert text position
...
Modify issues about pagination and signed display
Modify test case about member
2018-01-09 14:48:25 +08:00
Wenkai Yin
7da89ec39b
Passing tag as a parameter or the value will be overwritten
2018-01-08 15:23:35 +08:00
Daniel Jiang
f8af1f275e
Merge pull request #3911 from stonezdj/ldap_search_level
...
Ambiguous UI and internal values ldap_scope
2018-01-08 14:53:55 +08:00
Daniel Jiang
093e2bead2
Merge pull request #3950 from ywk253100/180105_ut
...
Add unit test for adding description of repository
2018-01-08 14:32:10 +08:00
pfh
93c524f5df
Merge remote-tracking branch 'upstream/master' into batchDelection
2018-01-08 14:31:51 +08:00
pfh
9371bd41e8
Modify filters' position and modify member module switch members' apperence
2018-01-08 14:04:31 +08:00
Wenkai Yin
a9877c3e0a
Merge pull request #3905 from pengpengshui/repEnhance
...
Add new replication rule module
2018-01-05 18:19:11 +08:00
Wenkai Yin
87ce1c84d5
Manual starting replication will be rejected if there are pending/running jobs
2018-01-05 17:05:57 +08:00
Wenkai Yin
487c248227
Add unit test for adding description of repository
2018-01-05 16:52:48 +08:00