From eced5016bcc1dafc023614870a57f7f2669d3364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=AF=E8=88=AA?= <101104760+ZhangSetSail@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:38:23 +0800 Subject: [PATCH] feat: create helm chart set user and passwd (#77) --- internal/repo/appstore/apptemplater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/repo/appstore/apptemplater.go b/internal/repo/appstore/apptemplater.go index 796234d..ab8ff0a 100644 --- a/internal/repo/appstore/apptemplater.go +++ b/internal/repo/appstore/apptemplater.go @@ -60,7 +60,7 @@ func (h *helmAppTemplate) fetch(ctx context.Context, appStore *domain.AppStore) } req = req.WithContext(ctx) - + req.SetBasicAuth(appStore.Username, appStore.Password) client := &http.Client{} resp, err := client.Do(req) if err != nil {