From f302dedd8550948645f37f14f5ad96bf93a1a9ca Mon Sep 17 00:00:00 2001 From: Vinny Sabatini Date: Tue, 1 Aug 2023 17:17:10 -0500 Subject: [PATCH] fix return for invalid private key algorithm in buildNextCR --- internal/controller/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/sync.go b/internal/controller/sync.go index 74e6c58..854215f 100644 --- a/internal/controller/sync.go +++ b/internal/controller/sync.go @@ -387,7 +387,7 @@ func (r *Route) buildNextCR(ctx context.Context, route *routev1.Route, revision default: r.eventRecorder.Event(route, corev1.EventTypeWarning, ReasonInvalidPrivateKeyAlgorithm, "invalid private key algorithm: "+privateKeyAlgorithm) - return fmt.Errorf("invalid private key algorithm, %s", privateKeyAlgorithm) + return nil, fmt.Errorf("invalid private key algorithm, %s", privateKeyAlgorithm) } csr, err := x509.CreateCertificateRequest(