mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-09 05:06:38 +10:00
Change certificates controller to no longer error for a Certificate that
no longer exists Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
@@ -149,7 +149,7 @@ func (c *controller) ProcessItem(ctx context.Context, key string) error {
|
||||
|
||||
crt, err := c.certificateLister.Certificates(namespace).Get(name)
|
||||
if apierrors.IsNotFound(err) {
|
||||
log.Error(err, "certificate not found for key")
|
||||
log.V(logf.DebugLevel).Info("certificate not found for key", "error", err.Error())
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
@@ -136,7 +136,7 @@ func (c *controller) ProcessItem(ctx context.Context, key string) error {
|
||||
|
||||
crt, err := c.certificateLister.Certificates(namespace).Get(name)
|
||||
if apierrors.IsNotFound(err) {
|
||||
log.Error(err, "certificate not found for key")
|
||||
log.V(logf.DebugLevel).Info("certificate not found for key", "error", err.Error())
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
@@ -139,7 +139,7 @@ func (c *controller) ProcessItem(ctx context.Context, key string) error {
|
||||
|
||||
crt, err := c.certificateLister.Certificates(namespace).Get(name)
|
||||
if apierrors.IsNotFound(err) {
|
||||
log.Error(err, "certificate not found for key")
|
||||
log.V(logf.DebugLevel).Info("certificate not found for key", "error", err.Error())
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
@@ -133,7 +133,7 @@ func (c *controller) ProcessItem(ctx context.Context, key string) error {
|
||||
|
||||
crt, err := c.certificateLister.Certificates(namespace).Get(name)
|
||||
if apierrors.IsNotFound(err) {
|
||||
log.Error(err, "certificate not found for key")
|
||||
log.V(logf.DebugLevel).Info("certificate not found for key", "error", err.Error())
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
@@ -103,7 +103,7 @@ func (c *controller) ProcessItem(ctx context.Context, key string) error {
|
||||
|
||||
crt, err := c.certificateLister.Certificates(namespace).Get(name)
|
||||
if apierrors.IsNotFound(err) {
|
||||
log.Error(err, "certificate not found for key")
|
||||
log.V(logf.DebugLevel).Info("certificate not found for key", "error", err.Error())
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
@@ -134,7 +134,7 @@ func (c *controller) ProcessItem(ctx context.Context, key string) error {
|
||||
|
||||
crt, err := c.certificateLister.Certificates(namespace).Get(name)
|
||||
if apierrors.IsNotFound(err) {
|
||||
log.Error(err, "certificate not found for key")
|
||||
log.V(logf.DebugLevel).Info("certificate not found for key", "error", err.Error())
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user