Changed Venafi CSR request "the request will be retried" -> "waiting"

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
joshvanl 2021-07-18 19:59:50 +01:00
parent 37e117c452
commit 0116bf18bd
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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(