Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions helm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ func (h *Helm) PackagePush(

if useNonOciHelmRepo {
curlCmd := []string{
`curl --variable %REGISTRY_USERNAME`,
`curl -f`,
`--variable %REGISTRY_USERNAME`,
`--variable %REGISTRY_PASSWORD`,
`--expand-user "{{REGISTRY_USERNAME}}:{{REGISTRY_PASSWORD}}"`,
`-T`,
Expand Down Expand Up @@ -277,7 +278,8 @@ func (h *Helm) doesChartExistOnRepo(
pkgFile := fmt.Sprintf("%s-%s.tgz", name, version)
// Do a GET of the chart but with response headers only so we do not download the chart
curlCmd := []string{
`curl --variable %REGISTRY_USERNAME`,
`curl`, // Do not use `-f` here because the returned http code is needed.
`--variable %REGISTRY_USERNAME`,
`--variable %REGISTRY_PASSWORD`,
`--expand-user "{{REGISTRY_USERNAME}}:{{REGISTRY_PASSWORD}}"`,
opts.getChartFqdn(pkgFile),
Expand Down
Loading