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:
parent
a5d9c9705c
commit
d5503c2ed2
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user