From 0116bf18bdf85f951d5d390e90c2196281df5419 Mon Sep 17 00:00:00 2001 From: joshvanl Date: Sun, 18 Jul 2021 19:59:50 +0100 Subject: [PATCH] Changed Venafi CSR request "the request will be retried" -> "waiting" Signed-off-by: joshvanl --- pkg/controller/certificatesigningrequests/venafi/venafi.go | 2 +- .../certificatesigningrequests/venafi/venafi_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/certificatesigningrequests/venafi/venafi.go b/pkg/controller/certificatesigningrequests/venafi/venafi.go index 2dcc48492..4a2df7ef5 100644 --- a/pkg/controller/certificatesigningrequests/venafi/venafi.go +++ b/pkg/controller/certificatesigningrequests/venafi/venafi.go @@ -168,7 +168,7 @@ func (v *Venafi) Sign(ctx context.Context, csr *certificatesv1.CertificateSignin if err != nil { switch err.(type) { case endpoint.ErrCertificatePending, endpoint.ErrRetrieveCertificateTimeout: - message := "Venafi certificate still in a pending state, the request will be retried" + message := "Venafi certificate still in a pending state, waiting" log.Error(err, message) v.recorder.Event(csr, corev1.EventTypeNormal, "IssuancePending", message) return err diff --git a/pkg/controller/certificatesigningrequests/venafi/venafi_test.go b/pkg/controller/certificatesigningrequests/venafi/venafi_test.go index be4045e80..066f47434 100644 --- a/pkg/controller/certificatesigningrequests/venafi/venafi_test.go +++ b/pkg/controller/certificatesigningrequests/venafi/venafi_test.go @@ -587,7 +587,7 @@ func TestProcessItem(t *testing.T) { builder: &testpkg.Builder{ CertManagerObjects: []runtime.Object{baseIssuer.DeepCopy()}, ExpectedEvents: []string{ - "Normal IssuancePending Venafi certificate still in a pending state, the request will be retried", + "Normal IssuancePending Venafi certificate still in a pending state, waiting", }, ExpectedActions: []testpkg.Action{ testpkg.NewAction(coretesting.NewCreateAction( @@ -638,7 +638,7 @@ func TestProcessItem(t *testing.T) { builder: &testpkg.Builder{ CertManagerObjects: []runtime.Object{baseIssuer.DeepCopy()}, ExpectedEvents: []string{ - "Normal IssuancePending Venafi certificate still in a pending state, the request will be retried", + "Normal IssuancePending Venafi certificate still in a pending state, waiting", }, ExpectedActions: []testpkg.Action{ testpkg.NewAction(coretesting.NewCreateAction(