From c8ac946790832e4832e542e42b1716c73da1876b Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Wed, 11 Dec 2024 16:30:42 +0100 Subject: [PATCH] Fix error r.r.GiteaBaseUrl => util.r.GiteaBaseUrl Signed-off-by: cmoulliard --- pkg/controllers/localbuild/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controllers/localbuild/controller.go b/pkg/controllers/localbuild/controller.go index bcc691e1..e6d9c8bb 100644 --- a/pkg/controllers/localbuild/controller.go +++ b/pkg/controllers/localbuild/controller.go @@ -669,7 +669,7 @@ func (r *LocalbuildReconciler) extractGiteaAdminSecret(ctx context.Context) (str } func (r *LocalbuildReconciler) updateGiteaDevPassword(ctx context.Context, adminPassword string) (error, string) { - client, err := gitea.NewClient(r.GiteaBaseUrl(r.Config), gitea.SetHTTPClient(util.GetHttpClient()), + client, err := gitea.NewClient(util.GiteaBaseUrl(r.Config), gitea.SetHTTPClient(util.GetHttpClient()), gitea.SetBasicAuth("giteaAdmin", adminPassword), gitea.SetContext(ctx), ) if err != nil {