|
|
@ -205,6 +205,13 @@ func FindChartInRepoURL(repoURL, chartName, chartVersion, certFile, keyFile, caF
|
|
|
|
// without adding repo to repositories, like FindChartInRepoURL,
|
|
|
|
// without adding repo to repositories, like FindChartInRepoURL,
|
|
|
|
// but it also receives credentials for the chart repository.
|
|
|
|
// but it also receives credentials for the chart repository.
|
|
|
|
func FindChartInAuthRepoURL(repoURL, username, password, chartName, chartVersion, certFile, keyFile, caFile string, getters getter.Providers) (string, error) {
|
|
|
|
func FindChartInAuthRepoURL(repoURL, username, password, chartName, chartVersion, certFile, keyFile, caFile string, getters getter.Providers) (string, error) {
|
|
|
|
|
|
|
|
return FindChartInAuthAndTLSRepoURL(repoURL, username, password, chartName, chartVersion, certFile, keyFile, caFile, false, getters)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FindChartInAuthRepoURL finds chart in chart repository pointed by repoURL
|
|
|
|
|
|
|
|
// without adding repo to repositories, like FindChartInRepoURL,
|
|
|
|
|
|
|
|
// but it also receives credentials and TLS verify flag for the chart repository.
|
|
|
|
|
|
|
|
func FindChartInAuthAndTLSRepoURL(repoURL, username, password, chartName, chartVersion, certFile, keyFile, caFile string, insecureSkipTLSverify bool, getters getter.Providers) (string, error) {
|
|
|
|
|
|
|
|
|
|
|
|
// Download and write the index file to a temporary location
|
|
|
|
// Download and write the index file to a temporary location
|
|
|
|
buf := make([]byte, 20)
|
|
|
|
buf := make([]byte, 20)
|
|
|
@ -219,6 +226,7 @@ func FindChartInAuthRepoURL(repoURL, username, password, chartName, chartVersion
|
|
|
|
KeyFile: keyFile,
|
|
|
|
KeyFile: keyFile,
|
|
|
|
CAFile: caFile,
|
|
|
|
CAFile: caFile,
|
|
|
|
Name: name,
|
|
|
|
Name: name,
|
|
|
|
|
|
|
|
InsecureSkipTLSverify: insecureSkipTLSverify,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r, err := NewChartRepository(&c, getters)
|
|
|
|
r, err := NewChartRepository(&c, getters)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|