Skip to content

Commit dd91bf3

Browse files
committed
Use chunk size of 10MB for pulp uploads
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
1 parent 15b7bfd commit dd91bf3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

magefiles/pulp/push.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func (p *debPusher) pushArgs(release, pkg string) []string {
148148
"--distribution", strings.Split(release, "/")[1],
149149
"--component", "main",
150150
"--repository", pulpRepo,
151+
"--chunk-size", "10MB",
151152
}
152153
}
153154

@@ -198,7 +199,7 @@ func (p *rpmPusher) pulpRepo(release, arch string) string {
198199
}
199200

200201
func (p *rpmPusher) pushArgs(pkgFile, repo string) []string {
201-
return []string{rpm, "content", "upload", "--file", pkgFile, "--repository", repo}
202+
return []string{rpm, "content", "upload", "--file", pkgFile, "--repository", repo, "--chunk-size", "10MB"}
202203
}
203204

204205
func (p *rpmPusher) linkArgs(repo, href string) []string {

0 commit comments

Comments
 (0)