diff --git a/pkg/clients/helm/client.go b/pkg/clients/helm/client.go index 24b6c08..3759453 100644 --- a/pkg/clients/helm/client.go +++ b/pkg/clients/helm/client.go @@ -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)