Commit Graph

4823 Commits

Author SHA1 Message Date
Steven Zou
b572e64a68 Refactor chart API endpoints
add /chartrepo after /api
add /chartrepo before /index.yaml,/:repo/index.yaml and /:repo/charts/:filename
add debug messages to the potential debug points
add more supporting mime types "multipart/form-data", "application/octet-stream" to the API endpoints

update travis file to inject ENV for UT cases of chart repo
2018-07-16 14:33:39 +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
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
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
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
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
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
Steven Zou
54a0d10994 Define the related handlers to handler the requests of chart server/repo
add chartserver directory to put chart server code
add controller to coordinate the flow
add base/repo/manipulation handlers to handle requests
add operator to parse more details of chart version
call dep ensure
2018-07-02 19:34:04 +08:00
Wenkai Yin
e705224b3f
Merge pull request #5225 from ywk253100/180629_chart
Add rewrite-target annotation to ingress rule
2018-07-02 11:25:55 +08:00
Daniel Jiang
1afb09b6cf
Merge pull request #5194 from ywk253100/180626_search
Fix bug in search API
2018-06-29 21:13:09 +08:00
Qian Deng
3ba302622c
Merge pull request #5213 from vmware/replication_by_label_ui
Label filter UI for replication
2018-06-29 07:44:26 -04:00
Wenkai Yin
98c09766f3
Merge pull request #5176 from silenceshell/patch-1
SERVER_ID should be SERVER_IP
2018-06-29 18:55:24 +08:00
Wenkai Yin
877d92b5ad Add rewrite-target annotation to ingress rule
The annotation prefix changes in a specific version of nginx controller, add the two kinds of annotation for rewrite-target to the rule to make it works.
2018-06-29 15:17:28 +08:00
sigsbee
889b36a944
Add data verify robot case after upgrade (#5207)
Add data verify e2e case after upgrade
2018-06-29 15:01:26 +08:00
Wenkai Yin
de7b10c9f3
Merge pull request #5196 from jkroepke/ui-ingress
Helm: Do not mount secret if ingress is disabled
2018-06-29 13:05:10 +08:00
Daniel Jiang
aef3213dfa
Merge pull request #5190 from stonezdj/reload_config
Fix issue that harbor tile can not save customized settings
2018-06-29 13:04:36 +08:00
Wenkai Yin
5552581c0c
Merge pull request #5199 from ywk253100/180621
Update docs
2018-06-29 12:52:55 +08:00
Daniel Jiang
173c8db295
Merge pull request #4930 from sigsbee/upgradetest
Add upgrade test tips
2018-06-29 11:20:07 +08:00
sigsbee
673c1dac01 Add upgrade test scripts (#5119)
Add upgrade test data generate script and example data
2018-06-29 10:09:10 +08:00
Wenkai Yin
aaa2cc1591 Update docs
Replace the email address with image to avoid junk emails
2018-06-29 10:08:27 +08:00
Daniel Jiang
c2d1eb49aa
Merge pull request #5209 from vmware/update-partners
Update partners.md
2018-06-29 08:32:32 +08:00
Daniel Jiang
1df7acf0d8
Merge pull request #5210 from vmware/arch-diagram
New architecture diagram
2018-06-29 08:28:29 +08:00
James
5d31dd5b57
New architecture diagram
Uploading new architecture diagram for documentation
2018-06-28 15:13:39 -04:00
James
dd0fc4a703
Update partners.md
Tweak content of page, including some grammatical errors. Removed reference to beego.
2018-06-28 15:05:52 -04:00
Daniel Jiang
c07f259c10
Merge pull request #5197 from reasonerjt/harbor-db-creation
Initialise Harbor DB schema in Harbor UI/adminserver container
2018-06-28 20:02:01 +08:00
myufei
c29635b9b0 Add upgrade test tips
Add tips and information before and after upgrade for Harbor
upgrade test
2018-06-28 19:01:15 +08:00
Daniel Jiang
c9b1962b1e Initialise Harbor DB schema in Harbor UI/adminserver container
This commit fixes #5040, the harbor-db image will only contain empty
databases, and harbor ui container will use migrate tool to run initial
SQL scripts to do initialization.  This is helpful for the case to
configure Harbor against external DB or DBaaS like RDS for HA deployment
However, this change will results some confusion as there are two tables
to track schema versions have been using alembic for migration, for this
release we'll try to use alembic to mock a `migration` table during
upgrade so the migrator will be bypassed, in future we'll consider to
consolidate to the golang based migrator.
Another issue is that the UI and adminserver containers will access DB
after start up in different congurations, can't ensure the sequence, so
both of them will try to update the schema when started up.
2018-06-28 16:22:53 +08:00
stonezdj
72e9b22e10 Fix issue that harbor tile can not save customized settings 2018-06-28 16:20:10 +08:00
Jan-Otto Kröpke
ba36dad54c Do not mount secret if ingress is disabled 2018-06-27 22:49:17 +02:00
Wenkai Yin
982760a132 Fix bug in search API
Refactor the logic of search API to fix bug mentioned in issue #5156 and #3838
2018-06-27 12:51:08 +08:00
sigsbee
7d6f8f94c4
Change create project verify method (#5184)
Update create project keyword to avoid created project on the second page caused verify fail
2018-06-27 11:27:03 +08:00
James
7bccb7b12a
Merge pull request #5187 from vmware/update-registry-landscape
Updated registry_landscape.md
2018-06-26 14:17:03 -04:00
Daniel Jiang
a784766167
Merge pull request #5180 from jkroepke/disable-ingress-option
Helm: Options to disable ingress objects
2018-06-26 20:44:59 +08:00
Jan-Otto Kröpke
668b2625e3 Options to disable ingress objects 2018-06-26 09:43:35 +02:00
Wenkai Yin
dd4c565aff
Merge pull request #5185 from reasonerjt/helm-chart-ca-download
Enable CA cert download on Chart deployment
2018-06-26 10:35:10 +08:00
Wenkai Yin
e51d6cc707
Merge pull request #5177 from ywk253100/180622_ingress_rule
Update ingress rule for Harbor chart
2018-06-26 10:29:08 +08:00
James
88941810ae
Updated registry_landscape.md
Simplified and tweaked registry landscape table.
2018-06-25 15:45:51 -04:00
Daniel Jiang
43d4bff5d3 Enable CA cert download on Chart deployment
This commit fixes #5138.  A volume references the secret will be mounted
to the UI pod, so the user can download the CA cert from UI.
2018-06-25 20:38:43 +08:00
James
fcae81a034
Merge pull request #5175 from clouderati/add-comparison
create registry landscape table
2018-06-22 12:10:56 -04:00
Wenkai Yin
34fa969b56 Update ingress rule for Harbor chart
Rewrite /v2/* to UI instead of registry to apply the filters to the requests
2018-06-22 17:47:14 +08:00
Wenkai Yin
66811b3289
Merge pull request #5160 from ywk253100/180619_response_code
Parse the error got from jobservice, fix #5047
2018-06-22 17:17:26 +08:00
silenceshell
51dba20347
SERVER_ID should be SERVER_IP 2018-06-22 11:28:52 +08:00
James
1f85263b3f Registry Landscape
Creating a high-level overview of different projects and tols available for
platform engineers / architects to leverage when attempting to deploy
a container registry.

If you find any errors please don't hesitate to submit a PR.
2018-06-21 15:01:36 -04:00
Wenkai Yin
a603848ddf
Merge pull request #5164 from stonezdj/fix_invalid_dn_500
Handle Invalid syntax and not found error
2018-06-20 17:35:03 +08:00
stonezdj
d6a4d79a03 Handle Invalid syntax and not found error 2018-06-20 14:27:29 +08:00
Wenkai Yin
05fd9c8836
Merge pull request #5159 from reasonerjt/helm-chart-ingress-refinement
Add externalPort in values.yaml
2018-06-19 14:16:49 +08:00
Wenkai Yin 79628
078360a021 Parse the error got from jobservice, fix #5047
Parse the error got from jobservice, and return the corresponding HTTP code if it's a HTTP error to caller
2018-06-19 13:30:06 +08:00
Daniel Jiang
8cd90b6809 Add externalPort in values.yaml
Fixes #5133
Provide more flexibility for ingress controller setting.  When the
ingress controller is not exposing 80/443 port, user can set `externalPort` to expose the endpoint of Harbor.
2018-06-16 12:17:29 +08:00
Daniel Jiang
1fae22add1
Merge pull request #5157 from pengpengshui/repLabelNew
Add replication rule label filter function #4861
2018-06-16 04:40:56 +08:00