Skip to content

Commit

Permalink
fix(helm): skip login if no credentials are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
thde committed Jan 24, 2024
1 parent 6ba133b commit e4b3229
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 pc.Username != "" || pc.Password != "" {
err := hc.login(spec, creds, pc.InsecureSkipTLSverify)
if err != nil {
return err
}
}

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

0 comments on commit e4b3229

Please sign in to comment.