Update util.go (#6423)

Signed-off-by: liujian <54946465+redscholar@users.noreply.github.com>
This commit is contained in:
liujian
2025-03-12 15:53:49 +08:00
committed by GitHub
parent afe1372bc3
commit e4ed63ac95

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