Skip to content

Commit

Permalink
change to query string
Browse files Browse the repository at this point in the history
  • Loading branch information
annabarnes1138 committed May 26, 2021
1 parent a65de97 commit d1200e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/releaser/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ func (r *Releaser) UpdateIndexFile() (bool, error) {

indexUrl := fmt.Sprintf("%s/index.yaml", r.config.ChartsRepo)
if r.config.Token != "" {
chartsRepoUrl, _ := url.Parse(r.config.ChartsRepo)
indexUrl = fmt.Sprintf("%s://%s@%s%s/index.yaml",
chartsRepoUrl.Scheme, r.config.Token,
chartsRepoUrl.Host, chartsRepoUrl.Path)
indexUrl = fmt.Sprintf("%s?token=%s", indexUrl, r.config.Token)
}

fmt.Printf("Retrieving index file from: %s\n", indexUrl)
Expand Down

0 comments on commit d1200e5

Please sign in to comment.