Commit Graph

4878 Commits

Author SHA1 Message Date
Wenkai Yin
affc63f4d1 Fix the mismatch of property used in helm chart
This commit fixes the issue mentioned int #5326
2018-07-18 17:56:52 +08:00
Wenkai Yin
993d51274f
Merge pull request #5325 from reasonerjt/update-readme-msgtemplate
Update README and .gitmessage
2018-07-18 09:52:38 +08:00
Daniel Jiang
ade4e62d2b Update README and .gitmessage
1) Remove the reference of MYSQL from README.md
2) Update commit message template to inert an empty line between title
and body.
2018-07-17 16:42:03 +08:00
Daniel Jiang
2d656c01b7
Merge pull request #5318 from ywk253100/180716_user_guide
Update the user guide
2018-07-17 14:32:25 +08:00
Yan
9e65499c10
Add garbage collection job implemention, this job could (#5268)
be triggered by manual and schedule. It calls registrtctl
to do the GC job, and log the output.
2018-07-16 18:08:40 +08:00
Wenkai Yin
be25d15fcc Update the user guide
Add repllication label filter to the user guide and replace a few images used in the doc
2018-07-16 18:03:31 +08:00
Yan
d5b85a6748
Add the registry controller httpserver, it's responsible for controlling (#5265)
docker regsitry. This version has the API to call regsitry GC with jobservice
secret. Seprates it into a standalone container as do not want to invoke two
processes in one container.

It needs to mount the registry storage into this container in order to do GC,
and needs to copy the registry binary into it.
2018-07-16 16:50:28 +08:00
Wenkai Yin
8a92019e8e
Merge pull request #5310 from reasonerjt/adminserver-update-schema
Let adminserver initialise the DB schema.
2018-07-16 12:52:11 +08:00
James
3655f7bcd3
Merge pull request #5312 from clouderati/master
Tweaking partners.md
2018-07-14 19:31:57 -04:00
James
65ffdbf3af Tweaking partners.md
- Removing blank space at EoL
- Adding China Mobile
2018-07-13 12:55:42 -04:00
Daniel Jiang
c3149bee4e
Merge pull request #5241 from vmware/ninjadq-fix-type-on-migration-doc
Fix images name typo on migration doc
2018-07-13 17:46:09 +08:00
Daniel Jiang
0d6ea995e1 Let adminserver initialise the DB schema.
This commit make update to remove the code from ui container to init the
DB schema.  As UI has dependency on admin server, so it's safe to assume
adminserver has to be ready first.  Regardless the setting of the config
store of admin server, it will try to access and intialize the schema of
database.
2018-07-13 17:32:17 +08:00
Daniel Jiang
8f8a6a1fc9
Merge pull request #5304 from steven-zou/chart_repo_supporting
Add API routes of chart repo services in harbor API router
2018-07-13 16:55:49 +08:00
Steven Zou
3a44f76b94 Add API routes of chart repo services in harbor API router
add chart repo API controller
update GetChartVersion to extract repo name from the request
update the corresponding UI cases

update the chart controller initialization process
2018-07-13 16:10:46 +08:00
Daniel Jiang
bd92b165c8
Merge pull request #5309 from ywk253100/180713_redis
Fix permission deny issue when Redis starting
2018-07-13 15:33:51 +08:00
Wenkai Yin
e0f2a3d5ce Fix permission deny issue when Redis starting
This commit changes the ownership of directory that Redis uses to user redis when starting up
2018-07-13 14:20:20 +08:00
Daniel Jiang
799a6b479a
Merge pull request #5289 from ywk253100/180710_chart
Fix misc issues of Harbor charts
2018-07-13 11:21:24 +08:00
timchenxiaoyu
a912a55ac2 add sync registry env (#5294)
By default Harbor will call catalog API of registry and sync the result to DB, this becomes problematic when registry is configured to custom storage service, there maybe inconsistent result and the whole process may be very time consuming.
So in this commit a env var SYNC_REGISTRY is introduced if user want Harbor to sync the repo when it starts up, by default it's false.
2018-07-13 11:15:41 +08:00
Daniel Jiang
f7a29363ed
Merge pull request #5296 from reasonerjt/clair-bump-up-v2.0.4
Bump up clair to v2.0.4
2018-07-12 15:09:17 +08:00
Daniel Jiang
bc1969156e Bump up clair to v2.0.4
This commit bump up clair to v2.0.4.  The current build process is
download the binary from google storage, the update of the binary in
google storage is not reflected in this commit.
2018-07-12 13:59:51 +08:00
Steven Zou
0dfc273ee8
Merge pull request #5246 from kulong0105/master
make/docker-compose.tpl: fix wrong mount configuration(#5208)
2018-07-12 13:54:35 +08:00
Daniel Jiang
e415d56099
Merge pull request #5258 from steven-zou/chart_repo_supporting
Implement the API services to support chart repo functions
2018-07-11 18:46:36 +08:00
Steven Zou
6ea9291c09 Refactor code after PR reviewing
pass cache config to the constructor of chart cache
use break loop to instead of return in GetIndexYaml
fix typo reids to redis
pass credential to the reverse proxy and chart client via constructors
2018-07-11 17:31:34 +08:00
Wenkai Yin
c72a7db4be Fix misc issues of Harbor charts
1. Fix the pull/push commands showed on UI are incorrect
2. Replace "insecureRegistry" with "externalProtocol"
3. Using the secret rather than pasting text if users want to use the certificate of themselves
4. Refine NOTES.txt
2018-07-11 17:16:42 +08:00
Steven Zou
da4359f56b Add UT cases for the code of supporting chart repo server
add UT cases for cache
add UT cases for ChartOperator
add UT cases for the main API service of chart server
export some consts in the security.go of filter package to let them visible in chartserver package
2018-07-11 13:55:35 +08:00
Daniel Jiang
5357b7ea76
Merge pull request #5273 from wy65701436/conf-reg-redis
Update docker registry cache from inmemory to redis.
2018-07-09 20:03:25 +08:00
wangyan
bba96b3669 Update docker registry cache from inmemory to redis.
It gives Harbor the capability to controll the cache of docker
registry, and the workaround for cache invalidation bug caused
by garbage collection, that is clean cache in GC job.

For more details, see Harbor issue #5078.
2018-07-09 02:32:07 -07:00
Wenkai Yin
fd5c17bced Publish images to Docker Hub (#5264)
This commit enables the images publishing to Docker Hub in Drone CI. Every pull request merging will trigger this process.
2018-07-09 11:03:51 +08:00
Steven Zou
44cbb29664 Add cache support for the querying of chart details
support in memory cache
support redis cache
2018-07-08 11:17:55 +08:00
Steven Zou
7d782c41fc Implement the functions of getting chart version details and chart lists
getting chart list returns chart list instead of map and provides total versions info
getting chart details will return dependencies and values besides the metatdata of the chart version
2018-07-06 20:53:13 +08:00
Daniel Jiang
ad7a85da51
Merge pull request #5200 from stonezdj/add_group_search_api
Add REST API to search LDAP by Group DN
2018-07-06 15:10:31 +08:00
Daniel Jiang
3bb4e2c921
Merge pull request #5260 from halfa/master
Change empty_subj to fix #2920 openssl issue
2018-07-06 15:08:10 +08:00
Steven Zou
b65cc34c70 Implement a unified index.yaml entrypoint service to support namespace isolations
replace the helm package from github.com to k8s.io
implement /index.yaml service API
2018-07-05 18:07:00 +08:00
stonezdj(Daojun Zhang)
d65a7baf7e
Merge pull request #5221 from stonezdj/admin_with_ldap_group
Add settings to define admin with ldap_group_admin_dn
2018-07-05 17:48:14 +08:00
Daniel Jiang
015b3fc566
Merge pull request #5254 from ywk253100/180704_chart_db
Modify chart to support master branch
2018-07-05 16:11:47 +08:00
stonezdj
62acdb14f3 Add settings to define admin with LDAP group DN 2018-07-05 14:46:44 +08:00
Wenkai Yin
6bb2bbb3ce Modify chart to support master branch
The chart currently is using images of Harbor 1.5 which contains three databases, this commit reduce them to only one to support master branch codes.
2018-07-05 14:27:48 +08:00
stonezdj
2494a7aaab Add REST API to search LDAP by Group DN
Used to verify and search DN when adding group member to project
2018-07-05 12:55:44 +08:00
Wenkai Yin
e1000d5984
Merge pull request #5239 from ywk253100/180703_preview
Update guide of demo server
2018-07-05 10:39:22 +08:00
Daniel Jiang
e1474ac50b
Merge pull request #5242 from steven-zou/chart_repo_supporting
Implement the related handler methods of the transparent operations
2018-07-04 21:16:07 +08:00
Yan
d366134fe8
Fix bug of packaging offline installer (#5245)
The init sql script name nad path was changed by PR #5197, this
commit is to update these and log the package command to console,
make it more easy to debug in future. Also remove the action to
pull migrator as it will built each time locally.
2018-07-04 20:03:44 +08:00
Daniel Jiang
6acb866818
Merge pull request #5248 from reasonerjt/tmp-fix-clair-ubuntu-url
Workaround the Clair issue in ubuntu updater
2018-07-04 19:00:13 +08:00
Daniel Jiang
c04d99b1ab Workaround the Clair issue in ubuntu updater
This commit is a temp fix to workaround coreos/clair#562
Recompiled the code at the tip of release-2.0 branch of clair and
updated Makefile.
Once clair provides a new release, we'll need to make update in
Makefiles and Dockerfiles again to consume it.
2018-07-04 17:28:47 +08:00
Yilong Ren
15d6145f5c make/docker-compose.tpl: fix wrong mount configuration(#5208) 2018-07-04 14:12:10 +08:00
Daniel Jiang
e9f02a9476
Merge pull request #5243 from wy65701436/fix-ci-offline
Fix CI pipeline bug on packaging offline installer
2018-07-04 00:39:41 +08:00
wangyan
28a13db29a Fix CI pipeline bug on packaging offline installer 2018-07-03 08:42:26 -07:00
Steven Zou
ce4e5ac01d Implement the related handler methods of the transparent operations based on proxy
support index file
support object downloading
support health checking
support related manipulating operations except getting chart version
2018-07-03 21:36:20 +08:00
Qian Deng
9cf9faab1b
Fix images name typo on migration doc
Fix the typo of images name of migrator v 1.2
2018-07-03 21:22:04 +08:00
Wenkai Yin
797fdef8a9 Update the demo server guide
Update the guide of demo server according to the comments
2018-07-03 19:09:41 +08:00
Daniel Jiang
0033f71d29
Merge pull request #5183 from 48763/patch-1
Modify installation_guide.md
2018-07-03 18:37:28 +08:00