Add event when stop creating CSR too many. (#482)

Signed-off-by: xuezhaojun <zxue@redhat.com>
This commit is contained in:
xuezhao
2024-05-30 09:45:52 +08:00
committed by GitHub
parent 468fdc0476
commit c61895ca6b

View File

@@ -312,6 +312,7 @@ func (c *clientCertificateController) sync(ctx context.Context, syncCtx factory.
}); updateErr != nil {
return updateErr
}
syncCtx.Recorder().Eventf("ClientCertificateCreationHalted", "Stop creating csr since there are too many csr created already on hub", c.controllerName)
return nil
}