Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b1ba1015
Commit
b1ba1015
authored
May 04, 2021
by
Mathieu Parent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Helm upload routes to workhorse
parent
e3ce6fbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
workhorse/internal/upstream/routes.go
workhorse/internal/upstream/routes.go
+3
-0
workhorse/upload_test.go
workhorse/upload_test.go
+5
-0
No files found.
workhorse/internal/upstream/routes.go
View file @
b1ba1015
...
...
@@ -286,6 +286,9 @@ func configureRoutes(u *upstream) {
// Terraform Module Package Repository
u
.
route
(
"PUT"
,
apiProjectPattern
+
`packages/terraform/modules/`
,
upload
.
BodyUploader
(
api
,
signingProxy
,
preparers
.
packages
)),
// Helm Artifact Repository
u
.
route
(
"POST"
,
apiProjectPattern
+
`packages/helm/api/[^/]+/charts\z`
,
upload
.
Accelerate
(
api
,
signingProxy
,
preparers
.
packages
)),
// We are porting API to disk acceleration
// we need to declare each routes until we have fixed all the routes on the rails codebase.
// Overall status can be seen at https://gitlab.com/groups/gitlab-org/-/epics/1802#current-status
...
...
workhorse/upload_test.go
View file @
b1ba1015
...
...
@@ -142,6 +142,9 @@ func TestAcceleratedUpload(t *testing.T) {
{
"POST"
,
`/api/v4/projects/group%2Fsubgroup%2Fproject/issues/30/metric_images`
,
true
},
{
"POST"
,
`/my/project/-/requirements_management/requirements/import_csv`
,
true
},
{
"POST"
,
`/my/project/-/requirements_management/requirements/import_csv/`
,
true
},
{
"POST"
,
"/api/v4/projects/2412/packages/helm/api/stable/charts"
,
true
},
{
"POST"
,
"/api/v4/projects/group%2Fproject/packages/helm/api/stable/charts"
,
true
},
{
"POST"
,
"/api/v4/projects/group%2Fsubgroup%2Fproject/packages/helm/api/stable/charts"
,
true
},
}
for
_
,
tt
:=
range
tests
{
...
...
@@ -232,6 +235,8 @@ func TestUnacceleratedUploads(t *testing.T) {
{
"POST"
,
`/api/v4/projects/group/subgroup/project/packages/pypi`
},
{
"POST"
,
`/api/v4/projects/group/project/packages/pypi`
},
{
"POST"
,
`/api/v4/projects/group/subgroup/project/packages/pypi`
},
{
"POST"
,
"/api/v4/projects/group/project/packages/helm/api/stable/charts"
},
{
"POST"
,
"/api/v4/projects/group/subgroup%2Fproject/packages/helm/api/stable/charts"
},
{
"POST"
,
`/api/v4/projects/group/project/issues/30/metric_images`
},
{
"POST"
,
`/api/v4/projects/group/subgroup/project/issues/30/metric_images`
},
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment