[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:
KubeSphere CI Bot
2025-03-12 18:44:49 +08:00
committed by GitHub
parent 844b04613d
commit 9d88c8d3a7

View File

@@ -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