From 704bc78d6896928e8c6f0f816b7512c4359c4780 Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Fri, 8 Nov 2024 16:18:59 +0100 Subject: [PATCH] Use cost 0 as argocd code #441 Signed-off-by: cmoulliard --- pkg/controllers/localbuild/argo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controllers/localbuild/argo.go b/pkg/controllers/localbuild/argo.go index ff468549..5f1435ae 100644 --- a/pkg/controllers/localbuild/argo.go +++ b/pkg/controllers/localbuild/argo.go @@ -81,7 +81,7 @@ func (r *LocalbuildReconciler) ReconcileArgo(ctx context.Context, req ctrl.Reque // Hash password using bcrypt password := argocdDevModePassword - hashedPassword, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost) + hashedPassword, err := bcrypt.GenerateFromPassword([]byte(password), 0) if err != nil { return ctrl.Result{}, fmt.Errorf("Error hashing password: %w", err) }