Update util.go (#6423)
Signed-off-by: liujian <54946465+redscholar@users.noreply.github.com>
This commit is contained in:
@@ -303,6 +303,7 @@ func configChanged(sub *corev1alpha1.InstallPlan, cluster string) bool {
|
||||
func createHelmCredential(repo *corev1alpha1.Repository) (helm.RepoCredential, error) {
|
||||
cred := helm.RepoCredential{
|
||||
InsecureSkipTLSVerify: repo.Spec.Insecure,
|
||||
CABundle: repo.Spec.CABundle,
|
||||
}
|
||||
if repo.Spec.BasicAuth != nil {
|
||||
cred.Username = repo.Spec.BasicAuth.Username
|
||||
|
||||
Reference in New Issue
Block a user