From fa3022443ce5aa91aaf959be66a988b0bc93fac0 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 4 Jul 2024 09:12:31 +0200 Subject: [PATCH] fix: Print `strings.Builder` by calling `String()` explicitly. The `String()` method is only defined for the pointer receiver. Signed-off-by: Florian Forster --- internal/controller/gitrepository_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/gitrepository_controller.go b/internal/controller/gitrepository_controller.go index d9c18ac4..bf6d469a 100644 --- a/internal/controller/gitrepository_controller.go +++ b/internal/controller/gitrepository_controller.go @@ -1027,7 +1027,7 @@ func (r *GitRepositoryReconciler) verifySignature(ctx context.Context, obj *sour reason := meta.SucceededReason mode := obj.Spec.Verification.GetMode() obj.Status.SourceVerificationMode = &mode - conditions.MarkTrue(obj, sourcev1.SourceVerifiedCondition, reason, "%v", message) + conditions.MarkTrue(obj, sourcev1.SourceVerifiedCondition, reason, "%s", message.String()) r.eventLogf(ctx, obj, eventv1.EventTypeTrace, reason, message.String()) return sreconcile.ResultSuccess, nil }