|
|
|
@ -45,6 +45,7 @@ type Entry struct {
|
|
|
|
|
CertFile string `json:"certFile"`
|
|
|
|
|
KeyFile string `json:"keyFile"`
|
|
|
|
|
CAFile string `json:"caFile"`
|
|
|
|
|
InsecureSkipTLSverify bool `json:"insecure_skip_tls_verify"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ChartRepository represents a chart repository
|
|
|
|
@ -121,6 +122,7 @@ func (r *ChartRepository) DownloadIndexFile() (string, error) {
|
|
|
|
|
// TODO add user-agent
|
|
|
|
|
resp, err := r.Client.Get(indexURL,
|
|
|
|
|
getter.WithURL(r.Config.URL),
|
|
|
|
|
getter.WithInsecureSkipVerifyTLS(r.Config.InsecureSkipTLSverify),
|
|
|
|
|
getter.WithTLSClientConfig(r.Config.CertFile, r.Config.KeyFile, r.Config.CAFile),
|
|
|
|
|
getter.WithBasicAuth(r.Config.Username, r.Config.Password),
|
|
|
|
|
)
|
|
|
|
|