Skip to content

Commit

Permalink
Don't fire event when a certificate is denied
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Sanders <[email protected]>
  • Loading branch information
jakexks committed Apr 15, 2021
1 parent 81cba15 commit 28d7363
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func (r *CertificateRequestReconciler) Reconcile(ctx context.Context, req ctrl.R
msg := "certificate request has been denied, not signing"
log.Info(msg, "cr", req.NamespacedName)
setReadyCondition(cmmeta.ConditionFalse, cmapi.CertificateRequestReasonDenied, msg)
r.Recorder.Event(&certificateRequest, eventTypeWarning, cmapi.CertificateRequestReasonDenied, msg)
return ctrl.Result{}, nil
}

Expand Down

0 comments on commit 28d7363

Please sign in to comment.