[release-4.1] Update util.go (#6424)
Update util.go Signed-off-by: liujian <54946465+redscholar@users.noreply.github.com> Co-authored-by: liujian <54946465+redscholar@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
844b04613d
commit
9d88c8d3a7
@@ -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