Skip to content

Commit

Permalink
Merge pull request #208 from thde/thde/pull-chart-login
Browse files Browse the repository at this point in the history
fix(helm): skip login if no credentials are provided
  • Loading branch information
turkenh authored Apr 23, 2024
2 parents 92d23a7 + 1f970c8 commit 14e578d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/clients/helm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,11 @@ func (hc *client) pullChart(spec *v1beta1.ChartSpec, creds *RepoCreds, chartDir

pc.DestDir = chartDir

err := hc.login(spec, creds, pc.InsecureSkipTLSverify)
if err != nil {
return err
if creds.Username != "" && creds.Password != "" {
err := hc.login(spec, creds, pc.InsecureSkipTLSverify)
if err != nil {
return err
}
}

o, err := pc.Run(chartRef)
Expand Down

0 comments on commit 14e578d

Please sign in to comment.