Move DeleteFunc logging to level 2

This commit is contained in:
Amine 2023-05-24 13:50:50 -05:00
parent 761016482d
commit 28b6c90696
2 changed files with 4 additions and 4 deletions

View File

@ -70,12 +70,12 @@ func NewMutatingWebhookConfigurationManager(f informers.SharedInformerFactory) g
if !ok {
tombstone, ok := obj.(cache.DeletedFinalStateUnknown)
if !ok {
klog.Errorf("Couldn't get object from tombstone %#v", obj)
klog.V(2).Infof("Couldn't get object from tombstone %#v", obj)
return
}
vwc, ok = tombstone.Obj.(*v1.MutatingWebhookConfiguration)
if !ok {
klog.Errorf("Tombstone contained object that is not expected %#v", obj)
klog.V(2).Infof("Tombstone contained object that is not expected %#v", obj)
return
}
}

View File

@ -70,12 +70,12 @@ func NewValidatingWebhookConfigurationManager(f informers.SharedInformerFactory)
if !ok {
tombstone, ok := obj.(cache.DeletedFinalStateUnknown)
if !ok {
klog.Errorf("Couldn't get object from tombstone %#v", obj)
klog.V(2).Infof("Couldn't get object from tombstone %#v", obj)
return
}
vwc, ok = tombstone.Obj.(*v1.ValidatingWebhookConfiguration)
if !ok {
klog.Errorf("Tombstone contained object that is not expected %#v", obj)
klog.V(2).Infof("Tombstone contained object that is not expected %#v", obj)
return
}
}